You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bruce Alspaugh <al...@gmail.com> on 2018/09/22 15:43:26 UTC

Project Jigsaw Multi-module Compilation

The quick-start guide for project Jigsaw describes how to compile 
multiple Java 9 modules with one javac command:

http://openjdk.java.net/projects/jigsaw/quick-start

How do I configure Maven to do that rather than compile each module 
separately?

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Project Jigsaw Multi-module Compilation

Posted by Martin Desruisseaux <ma...@geomatys.com>.
Le 22/09/2018 à 20:39, Robert Scholte a écrit :

> You can't.
>
> The Java 9 multiple module compilation doesn't fit into the Maven model.
>
> For Maven, every deliverable requires its own pom, hence a separate
> Maven module.
>
Or alternatively, we can try to get Maven to evolve. Otherwise we can't
have aggregated javadoc (unless I missed something), or cross-module
annotation processing. Idea has been drafted there:
https://github.com/Geomatys/maven-plugins/wiki . I didn't had the time
to work on the plugins yet, but I hope to start after ApacheCon is over.

    Martin



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Project Jigsaw Multi-module Compilation

Posted by Robert Scholte <rf...@apache.org>.
You can't.

The Java 9 multiple module compilation doesn't fit into the Maven model.
For Maven, every deliverable requires its own pom, hence a separate Maven  
module.

You could have a look at Pro[1], an experimental build tool inspired by  
Maven and all JPMS features.

thanks,
Robert

[1] https://github.com/forax/pro


On Sat, 22 Sep 2018 17:43:26 +0200, Bruce Alspaugh <al...@gmail.com>  
wrote:

> The quick-start guide for project Jigsaw describes how to compile  
> multiple Java 9 modules with one javac command:
>
> http://openjdk.java.net/projects/jigsaw/quick-start
>
> How do I configure Maven to do that rather than compile each module  
> separately?
>
> Bruce
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org