What does “Required filename-based automodules detected.” warning mean?

后端 未结 4 1969
鱼传尺愫
鱼传尺愫 2020-12-08 21:15

In my multi-module project, I created module-info.java only for few modules. And during compilation with maven-compiler-plugin:3.7.0 I\'m getting n

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 21:55

    I got that warning when in my module-info.java file I added a class from my module itself, I had to do this in order to debug my testfile in netbeans, but it is clearly wrong since it is not a module..

    module net.my.package.xy
    {
     requires java.logging;
     requires java.naming;
     requires javax.jms.api;
     //THAT GENERATES THE WARNING: 
     exports net.my.package.xy.MyClass;
    }
    

提交回复
热议问题