leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Alex Davidson Bryan 2019-05-21T10:09:30.084900Z

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

2019-05-21T10:46:39.086Z

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>

2019-05-21T14:57:44.086600Z

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

2019-05-21T14:58:52.087Z

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

2019-05-21T14:59:22.087700Z

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.

2019-05-21T20:34:36.089200Z

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

đź‘Ť 1