解决maven打war包报错

intelij idea 使用maven打包报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1

 

 

二、问题分析:
不能执行依赖包maven-compiler-plugin:3.8.1,判断原因是缺少这个jar包

三、问题解决:
打开pom.xml文件,在适当位置加入下列依赖:

<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</dependency>
注:如果报错的版本号不是2.3.2,把version标签里面的内容改成需要的版本号就行啦

相关文章:

  • 2021-06-27
  • 2021-09-06
  • 2021-09-15
  • 2021-12-27
猜你喜欢
  • 2021-09-24
  • 2022-12-23
  • 2022-02-21
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案