eclipse maven POM Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer


eclipse从2021-03更新为2021-06后,POM文件第一行有Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer

原因:POM中包含有maven-war-plugin插件版本低

 

1 <plugin>
2   <groupId>org.apache.maven.plugins</groupId>
3   <artifactId>maven-war-plugin</artifactId>
4   <version>2.4</version>
5   <configuration>
6     <failOnMissingWebXml>false</failOnMissingWebXml>
7   </configuration>
8 </plugin>

 

 

 将过低的版本号2.4,改为较高的版本号,比如3.3.1

1 <plugin>
2   <groupId>org.apache.maven.plugins</groupId>
3   <artifactId>maven-war-plugin</artifactId>
4   <version>3.3.1</version>
5   <configuration>
6     <failOnMissingWebXml>false</failOnMissingWebXml>
7   </configuration>
8 </plugin>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM