Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-563

JAR entry not found when including jar dependencies with "#" in classname

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.5
    • dependencySet
    • None

    Description

      I'm building an assembly using a dependencySet. Every jar is included.
      I get an error message Failed to create assembly: Error creating assembly archive jars-with-dependencies: Problem creating jar: JAR entry com/extjs/gxt/ui/client/widget/grid/GridTemplates not found in /home/ybonnaffemoity/mavenRepository/com/extjs/gxt/2.2.1-custo-1/gxt-2.2.1-custo-1.jar.

      It turns out that the incriminated class has also HTML files in the same folder (GridTemplates#startGroup.html for instance). If I remove theses files, the assembly will be created. I suspect the "#" character to be responsible of this.

      Assembly descriptor:

      <?xml version="1.0" encoding="UTF-8"?>
      <assembly>
          <id>jars-with-dependencies</id>
          <formats>
              <format>jar</format>
          </formats>
          <includeBaseDirectory>false</includeBaseDirectory>
          <fileSets>
              <fileSet>
                  <directory>${project.build.outputDirectory}</directory>
                  <outputDirectory>/</outputDirectory>
              </fileSet>
          </fileSets>
          <dependencySets>
              <dependencySet>
                  <outputDirectory>/</outputDirectory>
                  <unpack>true</unpack>
                  <includes>
                      <include>*:jar:*</include>
                  </includes>
              </dependencySet>
          </dependencySets>
      </assembly>
      
      jar -tf gxt-2.2.1-custo-1.jar | grep "GridTemplates" >>>>
      com/extjs/gxt/ui/client/widget/grid/GridTemplates#body.html
      com/extjs/gxt/ui/client/widget/grid/GridTemplates#endGroup.html
      com/extjs/gxt/ui/client/widget/grid/GridTemplates#master.html
      com/extjs/gxt/ui/client/widget/grid/GridTemplates#startGroup.html
      com/extjs/gxt/ui/client/widget/grid/GridTemplates.class
      com/extjs/gxt/ui/client/widget/grid/GridTemplates.java
      

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            youribonnaffe Youri Bonnaffé
            Votes:
            12 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: