Eclipse2020版本:pom.xml第一行报错:Could not initialize class org.apache.maven.plugin.war.

eclipse2020或以上版本和2018版本不一样、需要添加或修改pom.xml中插件的版本号

亲测如下:在pom.xml的<build>....</build>中增加下面代码

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-war-plugin</artifactId>
                 <version>3.3.1</version>
</plugin>

猜你喜欢

转载自blog.csdn.net/weixin_39709134/article/details/123820206