admin管理员组文章数量:1410717
I am upgrading my project from Java 11 to Java 17. During the build process, I encountered the following error:
Execution default-war of goal .apache.maven.plugins:maven-war-plugin:3.3.1:war failed: A required class was missing while executing .apache.maven.plugins:maven-war-plugin:3.3.1:war: /apache/maven/shared/filtering/MavenFilteringException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>.apache.maven.plugins:maven-war-plugin:3.3.1
[ERROR] strategy = .codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/../usr1/arbor/fx_mw_src/make_sys/../../local_repo//apache/maven/plugins/maven-war-plugin/3.3.1/maven-war-plugin-3.3.1.jar
[ERROR] urls[1] = file:/C:/../usr1/arbor/fx_mw_src/make_sys/../../local_repo//codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
How can I resolve this issue and ensure that the build process progresses further? Do I need to upgrade any other dependencies or plugins?
Any help would be greatly appreciated!
I have tried analyzing the build logs, but I am not sure how to proceed further. Here is the relevant section of my pom.xml
file:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<!-- Other plugins... -->
</plugins>
</pluginManagement>
</build>
本文标签:
版权声明:本文标题:Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:3.3.1:war failed: A required class was missing while upg 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744835898a2627627.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论