开发者

Two web.xml files in war, built using Maven

开发者 https://www.devze.com 2023-01-26 03:33 出处:网络
In my war, built by Maven, I fi开发者_运维百科nd two identical copies of web.xml file, in the same exact path. This is shown by opening the war in 7-ZIP.

In my war, built by Maven, I fi开发者_运维百科nd two identical copies of web.xml file, in the same exact path. This is shown by opening the war in 7-ZIP.

How can I debug this and find what exactly is causing this duplication?


  • Try mvn -X first to get more logs.
  • This may be relevant.


In case someone else gets here, encountered same problem and turned out that the maven-war-plugin was set to an older version. Add the following to your pom.xml:

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

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

精彩评论

暂无评论...
验证码 换一张
取 消