poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cedricwal...@apache.org
Subject svn commit: r1584035 - in /poi/branches/maven: build.xml pom.xml
Date Wed, 02 Apr 2014 13:57:11 GMT
Author: cedricwalter
Date: Wed Apr  2 13:57:10 2014
New Revision: 1584035

URL: http://svn.apache.org/r1584035
Log:
added source code to all artifacts

Modified:
    poi/branches/maven/build.xml
    poi/branches/maven/pom.xml

Modified: poi/branches/maven/build.xml
URL: http://svn.apache.org/viewvc/poi/branches/maven/build.xml?rev=1584035&r1=1584034&r2=1584035&view=diff
==============================================================================
--- poi/branches/maven/build.xml (original)
+++ poi/branches/maven/build.xml Wed Apr  2 13:57:10 2014
@@ -1118,36 +1118,7 @@ under the License.
         <echo>Use mvn-deploy.sh to deploy the artifacts in the remote repository</echo>
     </target>
 
-
-
-    <target name="jar-src" description="Sources for Maven">
-        <jar destfile="${dist.dir}/${jar.name}-${version.id}-sources-${DSTAMP}.jar"
-             manifest="build/poi-manifest.mf">
-            <fileset dir="${main.src}"/>
-            <metainf dir="legal/"/>
-        </jar>
-        <jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-sources-${DSTAMP}.jar"
-             manifest="build/poi-manifest.mf">
-            <fileset dir="${scratchpad.src}"/>
-            <metainf dir="legal/"/>
-        </jar>
-        <jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-sources-${DSTAMP}.jar"
-             manifest="build/poi-manifest.mf">
-            <fileset dir="${ooxml.src}"/>
-            <metainf dir="legal/"/>
-        </jar>
-        <jar destfile="${dist.dir}/${jar.name}-examples-${version.id}-sources-${DSTAMP}.jar"
-             manifest="build/poi-manifest.mf">
-            <fileset dir="${examples.src}"/>
-            <metainf dir="legal/"/>
-        </jar>
-        <jar destfile="${dist.dir}/${jar.name}-excelant-${version.id}-sources-${DSTAMP}.jar"
-             manifest="build/poi-manifest.mf">
-            <fileset dir="${excelant.src}"/>
-            <metainf dir="legal/"/>
-        </jar>
-    </target>
-
+    <!-- TODO to be done with assembly -->
     <target name="assemble" depends="jar,jar-src">
          <!-- jars to include in binary assemblies -->         
          <patternset id="bin.dist.jars">

Modified: poi/branches/maven/pom.xml
URL: http://svn.apache.org/viewvc/poi/branches/maven/pom.xml?rev=1584035&r1=1584034&r2=1584035&view=diff
==============================================================================
--- poi/branches/maven/pom.xml (original)
+++ poi/branches/maven/pom.xml Wed Apr  2 13:57:10 2014
@@ -143,6 +143,19 @@
                     </configuration>
                 </plugin>
 
+                <!-- Attach source code to all artifacts TODO add  dir="legal/" -->
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-source-plugin</artifactId>
+                    <executions>
+                        <execution>
+                            <id>attach-sources</id>
+                            <goals>
+                                <goal>jar</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
 
                 <plugin>
                     <groupId>org.apache.rat</groupId>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message