因此我在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如何无法处理那些泛型?