1、在maven build的时候,提示:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.1:compile (default-compile) on project hanzitopingyin: Compilation failure: Compilation failure:
[ERROR] 不再支持源选项 1.5。请使用 1.6 或更高版本。
[ERROR] 不再支持目标选项 1.5。请使用 1.6 或更高版本。
是使用的编译器版本太低,这时候需要在pom.xml中加入
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
2、有时候会提示无法使用下载的jar包,其实是maven有时候下载的jar包没下载完,或者下载的jar包有问题,这时候只需要重新下载,就是把以前下载的jar包目录删除,然后重新maven build。
3、goals: clean package