<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
上述配置变红,原因估计找不到具本路径。故加上
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
注意,加的这一句:<groupId>org.apache.maven.plugins</groupId>
特别注意:必须保证你的本地库中有这个文件\maven-repo\org\apache\maven\plugins maven-repo\org\apache\maven\plugins\maven-compiler-plugin(内部有各种版本)
标签:assembly,plugin,1.8,maven,plugins,apache,compiler From: https://www.cnblogs.com/danbobiji/p/17485703.html