Author: sebb
Date: Fri Apr 8 22:51:13 2011
New Revision: 1090477
URL: http://svn.apache.org/viewvc?rev=1090477&view=rev
Log:
Exclude examples from source jar
No longer create separate examples jar
Don't add examples jar to deployed artifacts; it's only needed for binary
zip/tgz
Removed:
commons/proper/net/trunk/src/assembly/examples.xml
Modified:
commons/proper/net/trunk/pom.xml
Modified: commons/proper/net/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/net/trunk/pom.xml?rev=1090477&r1=1090476&r2=1090477&view=diff
==============================================================================
--- commons/proper/net/trunk/pom.xml (original)
+++ commons/proper/net/trunk/pom.xml Fri Apr 8 22:51:13 2011
@@ -149,6 +149,17 @@ Supported protocols include: Echo, Finge
</configuration>
</plugin>
+ <!-- Exclude examples from source jar -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>examples/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -168,7 +179,6 @@ Supported protocols include: Echo, Finge
<descriptors>
<descriptor>src/assembly/bin.xml</descriptor>
<descriptor>src/assembly/src.xml</descriptor>
- <descriptor>src/assembly/examples.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
@@ -195,6 +205,10 @@ Supported protocols include: Echo, Finge
</manifest>
<fileset dir="target/classes"
includes="org/apache/commons/net/ftp/**,org/apache/commons/net/*,org/apache/commons/net/io/*,org/apache/commons/net/util/*"
/>
</jar>
+ <!--
+ Create the binary examples jar, which will
be added to the binary zip/tgz,
+ but not deployed independently to Maven
+ -->
<jar
destfile="target/commons-net-examples-${project.version}.jar">
<metainf dir="${basedir}"
includes="NOTICE.txt,LICENSE.txt" />
<manifest>
@@ -237,11 +251,6 @@ Supported protocols include: Echo, Finge
<type>jar</type>
<classifier>ftp</classifier>
</artifact>
- <artifact>
-
<file>target/commons-net-examples-${project.version}.jar</file>
- <type>jar</type>
- <classifier>examples</classifier>
- </artifact>
</artifacts>
</configuration>
</execution>