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>
精彩评论