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

                 Key: MASSEMBLY-563
                 URL: https://jira.codehaus.org/browse/MASSEMBLY-563
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.2.1
         Environment: Linux
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:52:38 UTC 2011 x86_64 GNU/Linux
            Reporter: Youri Bonnaffé


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



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to