项目可以在IDE中编译,但不能在Maven中编译

时间:2018-12-19 06:47:59

标签: java maven compiler-errors compilation

因此我在IDE中对该项目没有任何问题,但是当我在命令行上运行mvn clean install时,我得到以下信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:
compile (default-compile) on project myproject: Compilation failure

[ERROR] /C:/Users/myuser/gitprojects/myprojects/src/main/java/com/path/MyClass.java:[175,131] incompatible types: 
java.util.List<com.mycompany.Class2> cannot be converted to java.util.List<com.mycompany.Class>

IDE没问题时,Maven如何无法处理那些泛型?

0 个答案:

没有答案