'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing.解决

Updated on in 开发工具 with 0 views and 0 comments

报错信息

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 263, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 

原因

没有设置 maven-compiler-plugin 版本

解决办法

  • 在pom.xml 文件中,找到maven-compiler-plugin设置版本
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <!-- 设置版本号 -->
    <version>2.3.2</version>
    <configuration>
    	<source>1.8</source>
        <target>1.8</target>
        <encoding>UTF-8</encoding>
   	</configuration>
</plugin>

标题:'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing.解决
作者:dduan
地址:https://dduan.site/articles/2019/11/29/1575013789495.html