maven-tomcat7-plugin produces corrupted executable JAR

后端 未结 3 422
心在旅途
心在旅途 2021-01-12 08:38

I have problem using Maven Tomcat7 plugin to produce JAR archives with embedded Tomcat7 instance. Here is my pom.xml snippet:



        
相关标签:
3条回答
  • 2021-01-12 09:02

    When I rm the old dir .extract/ created by last java -jar xx-war.jar , it OK. And I use version 2.0, I think other version also work.

    0 讨论(0)
  • 2021-01-12 09:08

    Remove the path from the configuration. And use 2.1 version of the tomcat plugin. Making those two changes in my pom file fixed a similar issue for me. Also I had cleaned the $M2_REPO/org/apache folder prior to rerunning.

    0 讨论(0)
  • 2021-01-12 09:08

    This is indeed a bug in the tomcat7 maven plugin version 2.2: https://issues.apache.org/jira/browse/MTOMCAT-263

    Use version 2.1 or wait for 2.3 to be released.

    0 讨论(0)
提交回复
热议问题