What do I need to build JDK 9 project with non-modular dependencies using Maven

后端 未结 3 2026
深忆病人
深忆病人 2020-12-29 09:17

I have a simple Java 9 SE project with one dependency on a non-modularized project (chose Weld SE for this example) and I am trying to build it with Maven (clean insta

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 09:43

    If you specify a module-info.java file, you will need to declare all the java modules except java.base you need as you are now using jigsaw.

    Using mvn dependency:tree can help you in populating this but you are not required to use module-info.java in Java 9.

提交回复
热议问题