diff options
author | Cédric Walter <cedricwalter@apache.org> | 2014-04-02 13:57:10 +0000 |
---|---|---|
committer | Cédric Walter <cedricwalter@apache.org> | 2014-04-02 13:57:10 +0000 |
commit | 2e41a127da7e1d69b2ed10298b71a8b70b996178 (patch) | |
tree | 392cee3d7e57d9f0257f58af8b8cd3bed09910c1 | |
parent | e09725b1444c41a0fccd609b8e1c6e426bb3e96e (diff) | |
download | poi-2e41a127da7e1d69b2ed10298b71a8b70b996178.tar.gz poi-2e41a127da7e1d69b2ed10298b71a8b70b996178.zip |
added source code to all artifacts
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/maven@1584035 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | build.xml | 31 | ||||
-rw-r--r-- | pom.xml | 13 |
2 files changed, 14 insertions, 30 deletions
@@ -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"> @@ -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> |