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>

本文标签: