maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "benson margulies (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MSHADE-40) manifest data is lost when the shaded result is a classifier.
Date Tue, 26 Aug 2008 14:40:26 GMT
manifest data is lost when the shaded result is a classifier.
-------------------------------------------------------------

                 Key: MSHADE-40
                 URL: http://jira.codehaus.org/browse/MSHADE-40
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: benson margulies


I ran into problem with duplicate classes when I tried to use the shaded output of one project
as an input to another shaded project, and they shared a dependency.

So, I turned on the classifier feature, so that the second project could consume the unshaded
version of the first one.

And all is well, except that the Main-class: manifest attribute does not show up in the shaded
jar.

This works fine when I don't turn on the classifier. here's the POM-piece of note.

             <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>1.1</version>
                <configuration>
                 <shadedArtifactAttached>true</shadedArtifactAttached>
                 <finalName>excedrin-common-${common.version}</finalName>
                </configuration>
                <executions>
                 <execution>
                    <phase>package</phase>
                     <goals>
                       <goal>shade</goal>
                     </goals>
                  </execution>
                </executions>
             </plugin>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message