Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-161

Executable WAR: extraDependencies (JARs) should not be extracted but used directly

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.2
    • Component/s: tomcat6, tomcat7
    • Labels:
      None
    • Environment:
      tomcat7, windows, maven3

      Description

      When i create exec-war to create a a self-executable webapp, dependencies (at least extraDependencies) war extracted and added directly to the resulting JAR.

      the resulting jar contains a META-INF with lots of duplicate MANIFEST files, etc.

      this at least breaks signed JARs (e.g. JCE providers)

        Activity

        Hide
        Tim Astle added a comment -

        That sounds similar to something I've observed after I submitted a patch for MTOMCAT-215, but I had only addressed manifests. I hadn't gotten around to looking at why duplicate class files were being added to the bundle. I'm not sure if this the same thing as reported, but it sounds somewhat similar.

        Show
        Tim Astle added a comment - That sounds similar to something I've observed after I submitted a patch for MTOMCAT-215 , but I had only addressed manifests. I hadn't gotten around to looking at why duplicate class files were being added to the bundle. I'm not sure if this the same thing as reported, but it sounds somewhat similar.
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        added an excludes field as it you can add some file patterns to exclude.

        Show
        Olivier Lamy (*$^¨%`£) added a comment - added an excludes field as it you can add some file patterns to exclude.
        Hide
        Hudson added a comment -

        FAILURE: Integrated in TomcatMavenPlugin-mvn3.x #268 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/268/)
        MTOMCAT-161 add a filter to exclude some files from jars when building self executable war/jar (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1539220)

        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractStandaloneWarMojo.java
        Show
        Hudson added a comment - FAILURE: Integrated in TomcatMavenPlugin-mvn3.x #268 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/268/ ) MTOMCAT-161 add a filter to exclude some files from jars when building self executable war/jar (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1539220 ) /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractStandaloneWarMojo.java

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Manuel Hartl
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development