Fork me on GitHub
#leiningen
<
2019-05-21
>
Alex Davidson Bryan10:05:30

btw turns out my issue was just that the artifactId was just named something I wasn't expecting 🤷

sgerguri10:05:39

Is there a way to use a Maven plugin with nested configuration with leiningen? The example only has flat parameters, but what I'm after is a way of declaring (and being able to use) the Avro Maven plugins - see beginning of https://avro.apache.org/docs/current/gettingstartedjava.html. Specifically this:

<plugin>
  <groupId>org.apache.avro</groupId>
  <artifactId>avro-maven-plugin</artifactId>
  <version>1.9.0</version>
  <executions>
    <execution>
      <phase>generate-sources</phase>
      <goals>
        <goal>schema</goal>
      </goals>
      <configuration>
        <sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory>
        <outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <source>1.8</source>
    <target>1.8</target>
  </configuration>
</plugin>

mikerod14:05:44

@sgerguri do you just mean to do :pom-additions and run mvn via the generated pom.xml?

mikerod14:05:52

I’m not sure which example you are referring to that “only has flat parameters”

mikerod14:05:22

And leiningen will not be able to execute a Maven plugin at all. It can just generate you a pom.xml that you could then use Maven itself on.

sgerguri20:05:36

@mikerod Ah that's useful to know. Guess I will have to generate the pom file and take it from there with maven. Thanks!

👍 4