From cc3548e346eea6e8621921a43c63cec5baa12014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Walter?= Date: Fri, 4 Apr 2014 21:09:47 +0000 Subject: [PATCH] cleaned up pom.xml git-svn-id: https://svn.apache.org/repos/asf/poi/branches/maven@1584913 13f79535-47bb-0310-9956-ffa450edef68 --- etc/assembly/bundle.xml | 26 ++ build.xml => old.xml | 319 +----------------- ooxml-schemas/pom.xml | 47 ++- poi-examples/pom.xml | 8 +- .../src/main/resources}/jsp/HSSFExample.jsp | 0 .../poi/ss/examples/html/excelStyle.css | 0 .../poi/ss/examples/html/package.html | 0 .../org/apache/poi/ss/excelant/antlib.xml | 0 poi-ooxml-schemas/pom.xml | 30 +- poi-ooxml/pom.xml | 14 +- poi-scratchpad/pom.xml | 77 +---- pom.xml | 206 ++++++----- src/examples/lib/dummy.txt | 1 - 13 files changed, 194 insertions(+), 534 deletions(-) create mode 100644 etc/assembly/bundle.xml rename build.xml => old.xml (73%) rename {src/examples => poi-examples/src/main/resources}/jsp/HSSFExample.jsp (100%) rename poi-examples/src/main/{java => resources}/poi/ss/examples/html/excelStyle.css (100%) rename poi-examples/src/main/{java => resources}/poi/ss/examples/html/package.html (100%) rename {src/excelant/resources => poi-excelant/src/main/resources/java}/org/apache/poi/ss/excelant/antlib.xml (100%) delete mode 100644 src/examples/lib/dummy.txt diff --git a/etc/assembly/bundle.xml b/etc/assembly/bundle.xml new file mode 100644 index 0000000000..a860719ed0 --- /dev/null +++ b/etc/assembly/bundle.xml @@ -0,0 +1,26 @@ + + + dist + + zip + + false + + + + + org.apache.poi:poi-examples:jar + org.apache.poi:poi-excelant:jar + org.apache.poi:poi-main:jar + org.apache.poi:poi-ooxml:jar + org.apache.poi:poi-ooxml-schemas:jar + org.apache.poi:poi-scratchpad:jar + + false + dist + + + + \ No newline at end of file diff --git a/build.xml b/old.xml similarity index 73% rename from build.xml rename to old.xml index ae740ae474..c030db1110 100644 --- a/build.xml +++ b/old.xml @@ -72,15 +72,6 @@ under the License. - - - - - - - - - @@ -96,40 +87,6 @@ under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -184,11 +141,6 @@ under the License. - - - - - @@ -196,7 +148,6 @@ under the License. - @@ -206,13 +157,6 @@ under the License. - - - - - - - @@ -227,7 +171,6 @@ under the License. - @@ -238,20 +181,6 @@ under the License. - - - - - - - - - - - - - - @@ -269,8 +198,8 @@ under the License. Timestamp ${DSTAMP} The main targets of interest are: - clean Erase all build work products (ie. everything in the build directory) - - compile Compile all files from main, ooxml and scratchpad - - test Run all unit tests from main, ooxml and scratchpad + - compile Compile all files from main, ooxml + - test Run all unit tests from main, ooxml - jar Produce jar files - site Generate all documentation (Requires Apache Forrest) - dist Create a distribution (Requires Apache Forrest) @@ -286,15 +215,9 @@ under the License. - - - - - - @@ -517,8 +440,8 @@ under the License. + compile-examples" + description="Compiles the POI main classes and examples"/> @@ -551,58 +474,7 @@ under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - @@ -693,8 +536,8 @@ under the License. - + @@ -804,46 +647,6 @@ under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -916,40 +719,6 @@ under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1011,7 +780,6 @@ under the License. - @@ -1064,12 +832,10 @@ under the License. - - - + - @@ -1216,74 +981,6 @@ under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ooxml-schemas/pom.xml b/ooxml-schemas/pom.xml index 3a21a95dff..a1805c2b1a 100644 --- a/ooxml-schemas/pom.xml +++ b/ooxml-schemas/pom.xml @@ -1,20 +1,20 @@ org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT 4.0.0 - ooxml-schemas - Apach POI - Openxmlformats Schema package + jar + + Apache POI - Openxmlformats Schema package XmlBeans generated from the Ecma supplied xsds: http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip http://poi.apache.org/ @@ -65,7 +66,7 @@ limitations under the License. org.apache.maven.plugins maven-antrun-plugin - 1.6 + 1.7 unzip-schema @@ -106,12 +107,12 @@ limitations under the License. - ${project.groupId} + org.apache.poi poi-main ${project.version} - ${project.groupId} + org.apache.poi poi-scratchpad ${project.version} @@ -119,16 +120,6 @@ limitations under the License. org.apache.xmlbeans xmlbeans - 2.3.0 - - - - - - - org.apache.xmlbeans - xmlbeans - 2.3.0 diff --git a/poi-examples/pom.xml b/poi-examples/pom.xml index efb8e7929b..f1c29b9a9b 100644 --- a/poi-examples/pom.xml +++ b/poi-examples/pom.xml @@ -24,12 +24,10 @@ org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT 4.0.0 - - org.apache.poi poi-examples Apache POI Examples package @@ -38,12 +36,12 @@ - ${project.groupId} + org.apache.poi poi-main ${project.version} - ${project.groupId} + org.apache.poi poi-ooxml ${project.version} diff --git a/src/examples/jsp/HSSFExample.jsp b/poi-examples/src/main/resources/jsp/HSSFExample.jsp similarity index 100% rename from src/examples/jsp/HSSFExample.jsp rename to poi-examples/src/main/resources/jsp/HSSFExample.jsp diff --git a/poi-examples/src/main/java/poi/ss/examples/html/excelStyle.css b/poi-examples/src/main/resources/poi/ss/examples/html/excelStyle.css similarity index 100% rename from poi-examples/src/main/java/poi/ss/examples/html/excelStyle.css rename to poi-examples/src/main/resources/poi/ss/examples/html/excelStyle.css diff --git a/poi-examples/src/main/java/poi/ss/examples/html/package.html b/poi-examples/src/main/resources/poi/ss/examples/html/package.html similarity index 100% rename from poi-examples/src/main/java/poi/ss/examples/html/package.html rename to poi-examples/src/main/resources/poi/ss/examples/html/package.html diff --git a/src/excelant/resources/org/apache/poi/ss/excelant/antlib.xml b/poi-excelant/src/main/resources/java/org/apache/poi/ss/excelant/antlib.xml similarity index 100% rename from src/excelant/resources/org/apache/poi/ss/excelant/antlib.xml rename to poi-excelant/src/main/resources/java/org/apache/poi/ss/excelant/antlib.xml diff --git a/poi-ooxml-schemas/pom.xml b/poi-ooxml-schemas/pom.xml index ac05e45ba4..dae3477a07 100644 --- a/poi-ooxml-schemas/pom.xml +++ b/poi-ooxml-schemas/pom.xml @@ -24,7 +24,7 @@ limitations under the License. org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT 4.0.0 @@ -33,33 +33,7 @@ limitations under the License. Apache POI http://poi.apache.org/ Apache POI - Java API To Access Microsoft Format Files - - - - POI Users List - user-subscribe@poi.apache.org - user-unsubscribe@poi.apache.org - http://mail-archives.apache.org/mod_mbox/poi-user/ - - - POI Developer List - dev-subscribe@poi.apache.org - dev-unsubscribe@poi.apache.org - http://mail-archives.apache.org/mod_mbox/poi-dev/ - - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - - Apache Software Foundation - http://www.apache.org/ - + jar diff --git a/poi-ooxml/pom.xml b/poi-ooxml/pom.xml index ca586e26c4..c6c93c12c9 100644 --- a/poi-ooxml/pom.xml +++ b/poi-ooxml/pom.xml @@ -24,7 +24,7 @@ org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT 4.0.0 poi-ooxml @@ -34,22 +34,22 @@ - ${project.groupId} - poi-ooxml-schema + org.apache.poi + poi-ooxml-schemas ${project.version} - ${project.groupId} - poi-ooxml-schema-encryption + org.apache.poi + ooxml-schema-encryption ${project.version} - ${project.groupId} + org.apache.poi poi-main ${project.version} - ${project.groupId} + org.apache.poi poi-main ${project.version} test-jar diff --git a/poi-scratchpad/pom.xml b/poi-scratchpad/pom.xml index 577540d534..fdc00ddc7c 100644 --- a/poi-scratchpad/pom.xml +++ b/poi-scratchpad/pom.xml @@ -24,86 +24,13 @@ limitations under the License. org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT 4.0.0 poi-scratchpad - Apache POI Scratchpad package - - - - - - maven-resources-plugin - 2.6 - - - copy-sources - - generate-sources - - copy-resources - - - ${basedir}/src/main/java - - - ../../src/scratchpad/src - - - - - - copy-resources - - generate-resources - - copy-resources - - - ${basedir}/src/main/resources - - - ../../src/resources/scratchpad - - - - - - copy-tests - - generate-test-sources - - copy-resources - - - ${basedir}/src/test/java - - - ../../src/scratchpad/testcases - - - - - - - - - maven-clean-plugin - 2.5 - - - - src - false - - - - - - + jar diff --git a/pom.xml b/pom.xml index b6e6f1fbcc..53b448b0fd 100644 --- a/pom.xml +++ b/pom.xml @@ -17,15 +17,15 @@ limitations under the License. --> - - 4.0.0 org.apache.poi poi - 3.11-beta1-SNAPSHOT + 3.11-SNAPSHOT + + 4.0.0 pom Apache POI - the Java API for Microsoft Documents @@ -57,13 +57,13 @@ poi-main - ooxml-schemas poi-examples poi-excelant poi-ooxml poi-ooxml-schemas poi-scratchpad ooxml-schema-encryption + ooxml-schemas @@ -94,95 +94,108 @@ - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - ${jdk.version.source} - ${jdk.version.class} - - **/*.java - - - **/*.jpg - **/*.gif - **/*.png - **/*.pdf - **/*.xls - **/*.doc - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 - - - - true - true - - - ${user.name} - Apache POI - ${version.id} - The Apache Software Foundation - Apache POI - ${version.id} - org.apache.poi - The Apache Software Foundation - - - - - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - - org.apache.rat - apache-rat-plugin - 0.10 - - - - - + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${jdk.version.source} + ${jdk.version.class} + + **/*.java + + + **/*.jpg + **/*.gif + **/*.png + **/*.pdf + **/*.xls + **/*.doc + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + + + true + true + + + ${user.name} + Apache POI + ${project.version} + The Apache Software Foundation + Apache POI + ${project.version} + org.apache.poi + The Apache Software Foundation + + + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 2.2.1 + + + package + + single + + + + + etc/assembly + true + + + org.apache.maven.plugins maven-surefire-plugin - 2.16 + 2.17 org.apache.maven.surefire surefire-junit47 - 2.16 + 2.17 - ../../test-data + src/test/resources true org.apache.poi.util.NullLogger @@ -240,6 +253,8 @@ + + @@ -288,9 +303,29 @@ ant 1.8.2 + + stax + stax-api + 1.0.1 + + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.5.3 + + true + + target/site + + + + + scm:svn:http://svn.apache.org/repos/asf/poi/trunk @@ -298,4 +333,17 @@ http://svn.apache.org/viewvc/poi + + + poi-releases + Apache POI Releases Repository + http://repo1.maven.org + + + poi-snapshots + Apache Snapshots Repository + http://repo1.maven.org + + + diff --git a/src/examples/lib/dummy.txt b/src/examples/lib/dummy.txt deleted file mode 100644 index ee37f45196..0000000000 --- a/src/examples/lib/dummy.txt +++ /dev/null @@ -1 +0,0 @@ -Dummy file so this directory is not deleted by CVS. It's required for the build. \ No newline at end of file