You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/04/09 17:02:00 UTC

[jira] [Commented] (MNG-6390) Java9 Jigsaw ==> How to put Java library Jar files in Jigsaw "module-path"?

    [ https://issues.apache.org/jira/browse/MNG-6390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16430870#comment-16430870 ] 

Robert Scholte commented on MNG-6390:
-------------------------------------

It is not clear to me if you are successful in running or building. However, if you want to *_compile_* your project with modules, there are in general only 2 things you should know:
* use at least maven-compiler-plugin 3.7.0
* create a module descriptor, i.e. {{src/main/java/module-info.java}}

Based the descriptor and the dependencies in the {{pom.xml}} Maven is capable to decide where every jar belongs to.

For questions regarding IDEs, please try their lists or Stack Overflow

> Java9 Jigsaw ==> How to put Java library Jar files in Jigsaw "module-path"?
> ---------------------------------------------------------------------------
>
>                 Key: MNG-6390
>                 URL: https://issues.apache.org/jira/browse/MNG-6390
>             Project: Maven
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.5.3
>            Reporter: Colbert Philippe
>            Priority: Major
>
> I'm using Eclipse 4.8M4 (latest version at the time) with Maven used with Java9.   I want to use Java9 new module feature (project Jigsaw) in my new application.
> After carefully the documentation and Internet blogs, I can successfully use legacy libraries with Java9.   I do this WITHOUT Maven, using the command-line.   This process is now clear to me.
> However, now I want to do the same with Maven.   That's where things get confusing.   I need a way to put "old style" Java libraries (jar file) in the new Jigsaw concept of "module-path" (actual command-line parameter of javac).   The big question is: How can I put my Java jar libraries in the "module-path"?.    I should be able to do this from Maven.
> If this question is answered, the natural follow-up question is:  How can I do that from Eclipse?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)