summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml31
-rw-r--r--pom.xml13
2 files changed, 14 insertions, 30 deletions
diff --git a/build.xml b/build.xml
index 3aa6139e2f..662877d0f6 100644
--- a/build.xml
+++ b/build.xml
@@ -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">
diff --git a/pom.xml b/pom.xml
index 9d0c7c7945..b6e6f1fbcc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>