1.<artifactId>maven-compiler-plugin</artifactId><version>3.8.0</version>等 报红
1.1首先要找设置File--Settings--Build,..--Maven
1.2然后就继续File--Invalidata Caches
勾选点击这俩个 !!!
点击这个键,再开启idea然后在设置pom.xml文件的代码
<groupId>org.apache.maven.plugins</groupId>
演示:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
<plugin>
<!-- 插入代码-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
然后就OK了
版权归原作者 CV工程师!! 所有, 如有侵权,请联系我们删除。