diff options
-rw-r--r-- | build.xml | 43 | ||||
-rw-r--r-- | pom.xml | 27 |
2 files changed, 28 insertions, 42 deletions
@@ -1118,48 +1118,7 @@ under the License. <echo>Use mvn-deploy.sh to deploy the artifacts in the remote repository</echo> </target> - <target name="jar" depends="compile-all, compile-version" description="Creates jar files for distribution"> - <manifest file="build/poi-manifest.mf"> - <attribute name="Built-By" value="${user.name}"/> - <attribute name="Specification-Title" value="Apache POI"/> - <attribute name="Specification-Version" value="${version.id}"/> - <attribute name="Specification-Vendor" value="The Apache Software Foundation"/> - <attribute name="Implementation-Title" value="Apache POI"/> - <attribute name="Implementation-Version" value="${version.id}"/> - <attribute name="Implementation-Vendor-Id" value="org.apache.poi"/> - <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/> - </manifest> - <jar destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${main.output.dir}"/> - <metainf dir="legal/"/> - </jar> - <jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${scratchpad.output.dir}"/> - <metainf dir="legal/"/> - </jar> - <jar destfile="${dist.dir}/${jar.name}-ooxml-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${ooxml.output.dir}"/> - <metainf dir="legal/"/> - </jar> - <jar destfile="${dist.dir}/${jar.name}-examples-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${examples.output.dir}"/> - <metainf dir="legal/"/> - </jar> - <jar destfile="${dist.dir}/${jar.name}-ooxml-schemas-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${ooxml.lite.output.dir}"/> - <metainf dir="legal/"/> - </jar> - <jar destfile="${dist.dir}/${jar.name}-excelant-${version.id}-${DSTAMP}.jar" - manifest="build/poi-manifest.mf"> - <fileset dir="${excelant.output.dir}"/> - <metainf dir="legal/"/> - </jar> - </target> + <target name="jar-src" description="Sources for Maven"> <jar destfile="${dist.dir}/${jar.name}-${version.id}-sources-${DSTAMP}.jar" @@ -117,6 +117,33 @@ </configuration> </plugin> + + <!-- TODO add dir="legal/" + chnage default filename build/poi-manifest.mf--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.3.1</version> + <configuration> + <archive> + <manifest> + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> + <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> + </manifest> + <manifestEntries> + <Built-By>${user.name}</Built-By> + <Specification-Title>Apache POI</Specification-Title> + <Specification-Version>${version.id}</Specification-Version> + <Specification-Vendor>The Apache Software Foundation</Specification-Vendor> + <Implementation-Title>Apache POI</Implementation-Title> + <Implementation-Version>${version.id}</Implementation-Version> + <Implementation-Vendor-Id>org.apache.poi</Implementation-Vendor-Id> + <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor> + </manifestEntries> + </archive> + </configuration> + </plugin> + + <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> |