servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1234812 - /servicemix/smx4/bundles/trunk/bundles-pom/pom.xml
Date Mon, 23 Jan 2012 14:20:53 GMT
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>



Mime
View raw message