Hi Russ,

There's no way to configure this, the plugin will do it for you[1]

thanks,
Robert

[1] https://github.com/apache/maven-compiler-plugin/blob/master/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java#L328-L346

On Tue, 12 Feb 2019 18:56:52 +0100, Russell Gold <[email protected]> wrote:

Version 3.8.0 of the maven-compiler-plugin supports a multiReleaseOutput option which can compile classes directly to the appropriate META-INF/versions/{release} directory, which is very nice. What I don’t see, though, is how to tell it to use the previous release as its dependency. That is, given:

src
  |—— main
       |—— java
       |—— java9
       \—— java11

These directories will be compiled to:

target/classes, target/classes/META-INF/9 and target/classes/META-INF/11. But when I compile that last directory, I want to include target/classes/META-INF/9 in my class path, and I don’t see an obvious way to do it. It would be great if the plugin realized that this was necessary, but is there a way to configure it?

Thanks,
Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to