maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <rfscho...@apache.org>
Subject Re: maven compiler plugin multiReleaseOutput option and previous versions
Date Tue, 12 Feb 2019 18:08:20 GMT
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 <russell.gold@oracle.com>  
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message