Closed 9526xu closed 7 years ago
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
maven-compiler-plugin版本改成2.4后就没报错了。。不明白这什么问题。因为公司开发的项目也是使用2.3.2的也没事 贴一下maven版本 Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T21:51:42+08:00) Maven home: /Users/xurujian/maven/apache-maven Java version: 1.8.0_111, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.12.1", arch: "x86_64", family: "mac"
代码拉下来后,在idea运行mvn clean package -Dmaven.test.skip 直接报错