diff options
author | Dominik Stadler <centic@apache.org> | 2014-02-15 10:42:43 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2014-02-15 10:42:43 +0000 |
commit | 0e9bbce9ed840f52a3bae7677867f3da5e79fc1b (patch) | |
tree | 4e630c7c9cb6a543bc78bc682f3dbcd55003b532 /sonar/ooxml-schema/pom.xml | |
parent | 83139e0df7ac610f35bc1333126f3b3392063052 (diff) | |
download | poi-0e9bbce9ed840f52a3bae7677867f3da5e79fc1b.tar.gz poi-0e9bbce9ed840f52a3bae7677867f3da5e79fc1b.zip |
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
Diffstat (limited to 'sonar/ooxml-schema/pom.xml')
-rw-r--r-- | sonar/ooxml-schema/pom.xml | 101 |
1 files changed, 101 insertions, 0 deletions
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 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.poi</groupId> + <artifactId>poi-parent</artifactId> + <version>3.11-SNAPSHOT</version> + </parent> + <artifactId>poi-ooxml-schema</artifactId> + <packaging>jar</packaging> + + <name>Apach POI - Openxmlformats Schema package</name> + + <build> + <sourceDirectory>target/generated-sources/xmlbeans</sourceDirectory> + + <plugins> + <!-- Download and unpack the OfficeOpenXML Schema and use xmlbeans to create classes from the XSDs --> + <plugin> + <groupId>com.googlecode.maven-download-plugin</groupId> + <artifactId>maven-download-plugin</artifactId> + <version>1.1.0</version> + <executions> + <execution> + <id>install-xsds</id> + <phase>generate-sources</phase> + <goals> + <goal>wget</goal> + </goals> + <configuration> + <url>http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip</url> + <unpack>true</unpack> + <md5>abe6bb6e7799e854934b3c634e8bcf7b</md5> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.6</version> + <executions> + <execution> + <id>unzip-schema</id> + <phase>generate-sources</phase> + <configuration> + <target> + <echo message="unzip schemas" /> + <unzip src="target/OfficeOpenXML-XMLSchema.zip" dest="target/schemas/" /> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xmlbeans-maven-plugin</artifactId> + <version>2.3.3</version> + <executions> + <execution> + <phase>generate-sources</phase> + <goals> + <goal>xmlbeans</goal> + </goals> + </execution> + </executions> + <configuration> + <schemaDirectory>target/schemas</schemaDirectory> + <javaSource>1.5</javaSource> + <optimize>yes</optimize> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>poi-main</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>poi-scratchpad</artifactId> + <version>${project.version}</version> + </dependency> + + <dependency> + <groupId>org.apache.xmlbeans</groupId> + <artifactId>xmlbeans</artifactId> + <version>2.3.0</version> + </dependency> + </dependencies> +</project> |