You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2012/01/23 15:20:53 UTC
svn commit: r1234812 - /servicemix/smx4/bundles/trunk/bundles-pom/pom.xml
Author: jbonofre
Date: Mon Jan 23 14:20:53 2012
New Revision: 1234812
URL: http://svn.apache.org/viewvc?rev=1234812&view=rev
Log:
[SMX4-919] Add a shade configuration to attach sources artifact
Modified:
servicemix/smx4/bundles/trunk/bundles-pom/pom.xml
Modified: servicemix/smx4/bundles/trunk/bundles-pom/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/bundles/trunk/bundles-pom/pom.xml?rev=1234812&r1=1234811&r2=1234812&view=diff
==============================================================================
--- servicemix/smx4/bundles/trunk/bundles-pom/pom.xml (original)
+++ servicemix/smx4/bundles/trunk/bundles-pom/pom.xml Mon Jan 23 14:20:53 2012
@@ -97,6 +97,34 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
+ <executions>
+ <execution>
+ <id>sources</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <includes>
+ <include>*:*:*:sources</include>
+ <include>${project.groupId}:${project.artifactId}:*:sources</include>
+ </includes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>**/*.class</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <promoteTransitiveDependencies>false</promoteTransitiveDependencies>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <shadedClassifierName>sources</shadedClassifierName>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>