maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Davis (JIRA)" <j...@codehaus.org>
Subject [jira] (MSHADE-131) Attaching of shaded jar does not happen
Date Thu, 13 Sep 2012 14:50:21 GMT

    [ https://jira.codehaus.org/browse/MSHADE-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308424#comment-308424
] 

James Davis commented on MSHADE-131:
------------------------------------

After a little bit more experimentation, it turns out that what it does not like is the setting
of the output directory.  After looking at the documentation, I guess this is the "expected"
behavior.  However, I believe this is not the correct behavior because this causes the shaded
artifact to clobber the original jar.
                
> Attaching of shaded jar does not happen
> ---------------------------------------
>
>                 Key: MSHADE-131
>                 URL: https://jira.codehaus.org/browse/MSHADE-131
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5, 2.0
>         Environment: Kubuntu 12.04, Oracle Java 1.6.0_26, Maven 3.0.3
>            Reporter: James Davis
>
> With the following plugin configuration:
>   <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-shade-plugin</artifactId>
>     <executions>
>       <execution>
>         <phase>package</phase>
>        <goals>
>           <goal>shade</goal>
>          </goals>
>        <configuration>
>           <outputFile>${project.build.directory}/${project.build.finalName}-executable.jar</outputFile>
>           <transformers>
>             <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>               <resource>META-INF/spring.handlers</resource>
>             </transformer>
>             <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>               <resource>META-INF/spring.schemas</resource>
>             </transformer>
>             <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
>               <mainClass>my.example.Main</mainClass>
>             </transformer>
>           </transformers>
>           <shadedArtifactAttached>true</shadedArtifactAttached>
>           <shadedClassifierName>shaded</shadedClassifierName>
>         </configuration>
>       </execution>
>     </executions>
>   </plugin>
> If I use this, it builds the shaded artifact but it does not get included when I run
mvn install or mvn deploy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message