From: Dominik Stadler Date: Sat, 15 Feb 2014 10:42:43 +0000 (+0000) Subject: Add a set of maven pom.xml files for Sonar, a few workaround are X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d6b1f1f355888663367aa86e950b31aad0b1633;p=poi.git Add a set of maven pom.xml files for Sonar, a few workaround are necessary, but overall this now allows to compile and run test for all Apache POI components using Maven, which is a pre-requisite to be analyzed at http://nemo.sonarqube.org/ git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568613 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/sonar/examples/pom.xml b/sonar/examples/pom.xml new file mode 100644 index 0000000000..be0cd111a8 --- /dev/null +++ b/sonar/examples/pom.xml @@ -0,0 +1,39 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-examples + jar + + Apache POI Examples package + + + ../../src/examples/src + + + + + ${project.groupId} + poi-main + ${project.version} + + + ${project.groupId} + poi-ooxml + ${project.version} + + + + + junit + junit + 4.11 + + + diff --git a/sonar/excelant/pom.xml b/sonar/excelant/pom.xml new file mode 100644 index 0000000000..478a9364be --- /dev/null +++ b/sonar/excelant/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-excelant + jar + + Apache POI ExcelAnt package + + + ../../src/excelant/java + ../../src/excelant/testcases + + + ../../src/excelant/resources + + + + + + + ${project.groupId} + poi-main + ${project.version} + + + ${project.groupId} + poi-main + ${project.version} + test-jar + test + + + ${project.groupId} + poi-ooxml + ${project.version} + + + + org.apache.ant + ant + 1.8.2 + + + diff --git a/sonar/main/pom.xml b/sonar/main/pom.xml new file mode 100644 index 0000000000..81e87aa168 --- /dev/null +++ b/sonar/main/pom.xml @@ -0,0 +1,54 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-main + jar + + Apache POI Main package + + + ../../src/java + ../../src/testcases + + + ../../src/resources/main + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + test-jar + + + + + + + + + + commons-codec + commons-codec + 1.9 + + + commons-logging + commons-logging + 1.1.3 + + + diff --git a/sonar/ooxml-schema-encryption/pom.xml b/sonar/ooxml-schema-encryption/pom.xml new file mode 100644 index 0000000000..f26c746045 --- /dev/null +++ b/sonar/ooxml-schema-encryption/pom.xml @@ -0,0 +1,103 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-ooxml-schema-encryption + jar + + Apach POI - Openxmlformats Encryption Schema package + + + target/generated-sources/xmlbeans + + + + org.codehaus.mojo + xmlbeans-maven-plugin + 2.3.3 + + + generate-sources + + xmlbeans + + + + + ../../src/ooxml/resources/org/apache/poi/poifs/crypt + 1.5 + yes + + + + + + com.google.code.maven-replacer-plugin + replacer + 1.5.2 + + + generate-sources + + replace + + + + + + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/encryption/CTKeyEncryptor.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/encryption/impl/CTKeyEncryptorImpl.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/impl/EncryptedKeyDocumentImpl.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/certificate/EncryptedKeyDocument.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/certificate/impl/EncryptedKeyDocumentImpl.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/EncryptedKeyDocument.java + target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/impl/EncryptedKeyDocumentImpl.java + + + + etEncryptedKey2 + etEncryptedCertificateKey + + + etEncryptedKey + etEncryptedPasswordKey + + + ewEncryptedKey2 + ewEncryptedCertificateKey + + + ewEncryptedKey + ewEncryptedPasswordKey + + + encryptedKey2\) + encryptedCertificateKey) + + + encryptedKey\) + encryptedPasswordKey) + + + + + + + + + + + org.apache.xmlbeans + xmlbeans + 2.3.0 + + + diff --git a/sonar/ooxml-schema/pom.xml b/sonar/ooxml-schema/pom.xml new file mode 100644 index 0000000000..92e0111c8f --- /dev/null +++ b/sonar/ooxml-schema/pom.xml @@ -0,0 +1,101 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-ooxml-schema + jar + + Apach POI - Openxmlformats Schema package + + + target/generated-sources/xmlbeans + + + + + com.googlecode.maven-download-plugin + maven-download-plugin + 1.1.0 + + + install-xsds + generate-sources + + wget + + + http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip + true + abe6bb6e7799e854934b3c634e8bcf7b + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.6 + + + unzip-schema + generate-sources + + + + + + + + run + + + + + + + org.codehaus.mojo + xmlbeans-maven-plugin + 2.3.3 + + + generate-sources + + xmlbeans + + + + + target/schemas + 1.5 + yes + + + + + + + + ${project.groupId} + poi-main + ${project.version} + + + ${project.groupId} + poi-scratchpad + ${project.version} + + + + org.apache.xmlbeans + xmlbeans + 2.3.0 + + + diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml new file mode 100644 index 0000000000..0ece9d6235 --- /dev/null +++ b/sonar/ooxml/pom.xml @@ -0,0 +1,74 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-ooxml + jar + + Apache POI OOXML package + + + ../../src/ooxml/java + ../../src/ooxml/testcases + + + ../../src/resources/ooxml + + + + + + + ${project.groupId} + poi-ooxml-schema + ${project.version} + + + ${project.groupId} + poi-ooxml-schema-encryption + ${project.version} + + + ${project.groupId} + poi-main + ${project.version} + + + ${project.groupId} + poi-main + ${project.version} + test-jar + test + + + ${project.groupId} + poi-scratchpad + ${project.version} + + + + org.apache.xmlbeans + xmlbeans + 2.3.0 + + + + dom4j + dom4j + 1.6.1 + + + + + junit + junit + 4.11 + + + diff --git a/sonar/pom.xml b/sonar/pom.xml new file mode 100644 index 0000000000..2232fe5e09 --- /dev/null +++ b/sonar/pom.xml @@ -0,0 +1,119 @@ + + 4.0.0 + + org.apache.poi + poi-parent + pom + 3.11-SNAPSHOT + + Apache POI Parent Project + + Maven build of Apache POI for Sonar checks + http://poi.apache.org/ + + + + 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/ + + + + main + ooxml-schema + ooxml-schema-encryption + ooxml + scratchpad + excelant + examples + + + + ASCII + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.6 + 1.6 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.16 + + + org.apache.maven.surefire + surefire-junit47 + 2.16 + + + + + + ../../test-data + true + org.apache.poi.util.NullLogger + + -Duser.language=en -Duser.country=US + + **/All*Tests.java + **/TestUnfixedBugs.java + **/TestcaseRecordInputStream.java + **/POITestCase.java + + + **/TestWordToConverterSuite*.java + **/TestExcelConverterSuite*.java + + + + + + + + + + + junit + junit + 4.11 + test + + + diff --git a/sonar/scratchpad/pom.xml b/sonar/scratchpad/pom.xml new file mode 100644 index 0000000000..3824eeaace --- /dev/null +++ b/sonar/scratchpad/pom.xml @@ -0,0 +1,40 @@ + + 4.0.0 + + org.apache.poi + poi-parent + 3.11-SNAPSHOT + + poi-scratchpad + jar + + Apache POI Scratchpad package + + + ../../src/scratchpad/src + ../../src/scratchpad/testcases + + + ../../src/resources/scratchpad + + + + + + + ${project.groupId} + poi-main + ${project.version} + + + ${project.groupId} + poi-main + ${project.version} + test-jar + test + + +