[INFO] -------------------------------------------- -----------------
[错误]
/C:/Users/sumit.garg/workspace_oxy_java9/csp-shared/src/main/java/module-info.java:[9,27] 找不到模块:log4j.core [错误]
/C:/Users/sumit.garg/workspace_oxy_java9/csp-shared/src/main/java/module-info.java:[10,26] 找不到模块:log4j.api
这是我的module-info.java
。编译没有错误。
module cspSharedModule {
requires log4j.core;
requires log4j.api;
requires java.xml;
requires java.xml.bind;
}
maven-compiler-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>9</source>
<target>9</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>