Maven generates duplicate pom.xml and pom.properties files in a jar

前端 未结 6 971
北海茫月
北海茫月 2020-12-15 04:50

I package my Maven-based Spring app with:

mvn install-DskipTests -Peverything. 

And something strange arises. In META-INF of generated jar,

6条回答
  •  没有蜡笔的小新
    2020-12-15 05:36

    It seems like this is a somewhat common problem that arises from a conflict in Eclipse, especially with the m2e-wtp integration.

    Some people are indicating that it can be fixed by including clean in the list of goals to run, e.g. mvn clean package.

    Also try to update your m2e installation and make sure you don't have multiple versions of m2e or m2eclipse (the pre-Indigo version) installed.

    Some references to other people facing this problem:

    • http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01995.html
    • https://issues.sonatype.org/browse/MECLIPSEWTP-209
    • https://issuetracker.springsource.com/browse/STS-2349
    • https://github.com/sonatype/m2eclipse-extras/issues/9

提交回复
热议问题