aboutsummaryrefslogtreecommitdiffstats
path: root/sonar/ooxml-schema/pom.xml
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-11-21 19:37:26 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-11-21 19:37:26 +0000
commit01a6730ea7798a5e506053e48b97feae2fded60d (patch)
tree421e6a95c07f32e926b8d1adccaca58d59005b85 /sonar/ooxml-schema/pom.xml
parent74d58c8bde9a00b9b3695665c3b7b12fe2a262f1 (diff)
downloadpoi-01a6730ea7798a5e506053e48b97feae2fded60d.tar.gz
poi-01a6730ea7798a5e506053e48b97feae2fded60d.zip
#58617 - Add custom safe XmlBeans type loader / rename vendor specific schema packages
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1715555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sonar/ooxml-schema/pom.xml')
-rw-r--r--sonar/ooxml-schema/pom.xml96
1 files changed, 12 insertions, 84 deletions
diff --git a/sonar/ooxml-schema/pom.xml b/sonar/ooxml-schema/pom.xml
index a40fb9a2ac..3d234e02cc 100644
--- a/sonar/ooxml-schema/pom.xml
+++ b/sonar/ooxml-schema/pom.xml
@@ -7,50 +7,20 @@
<groupId>org.apache.poi</groupId>
<artifactId>poi-parent</artifactId>
<version>3.14-beta1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
</parent>
<artifactId>poi-ooxml-schema</artifactId>
<packaging>jar</packaging>
- <name>Apach POI - Openxmlformats Schema package</name>
+ <name>Apache POI - Openxmlformats Schema package</name>
<properties>
<!-- see http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus for details of this property -->
<sonar.exclusions>target/generated-sources/*</sonar.exclusions>
<maven.compiler.fork>true</maven.compiler.fork>
+ <xmlbeans.xsdconfig>${basedir}/../../src/ooxml/resources/org/apache/poi/schemas/ooxmlSchemas.xsdconfig</xmlbeans.xsdconfig>
</properties>
- <profiles>
- <!-- We need a fair amount of memory to compile the xml schema, -->
- <!-- but limit it in case it goes wrong! -->
- <!-- Pick the right amount based on 32 vs 64 bit jvm -->
-
- <profile>
- <id>32bitstuff</id>
- <activation>
- <property>
- <name>sun.arch.data.model</name>
- <value>32</value>
- </property>
- </activation>
- <properties>
- <maven.compiler.maxmem>512m</maven.compiler.maxmem>
- </properties>
- </profile>
-
- <profile>
- <id>64bitstuff</id>
- <activation>
- <property>
- <name>sun.arch.data.model</name>
- <value>64</value>
- </property>
- </activation>
- <properties>
- <maven.compiler.maxmem>768m</maven.compiler.maxmem>
- </properties>
- </profile>
- </profiles>
-
<build>
<plugins>
<!-- Download and unpack the OfficeOpenXML Schema and use xmlbeans to create classes from the XSDs -->
@@ -60,7 +30,7 @@
<version>1.1.0</version>
<executions>
<execution>
- <id>install-xsds-part-4</id>
+ <id>download-xsds</id>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
@@ -85,7 +55,9 @@
<configuration>
<target>
<echo message="unzip schemas" />
- <unzip src="target/OfficeOpenXML-XMLSchema.zip" dest="target/schemas/" />
+ <unzip src="target/OfficeOpenXML-XMLSchema.zip" dest="target/schemas" />
+ <copy file="../../src/ooxml/resources/org/apache/poi/xdgf/visio.xsd"
+ todir="target/schemas"/>
</target>
</configuration>
<goals>
@@ -94,49 +66,6 @@
</execution>
</executions>
</plugin>
-
- <!-- include the visio schema -->
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>copy-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>target/schemas/</outputDirectory>
- <resources>
- <resource>
- <directory>../../src/ooxml/resources/org/apache/poi/xdgf/</directory>
- </resource>
- </resources>
- </configuration>
- </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>
- <noJavac>true</noJavac>
- </configuration>
- </plugin>
</plugins>
</build>
@@ -151,11 +80,10 @@
<artifactId>poi-scratchpad</artifactId>
<version>${project.version}</version>
</dependency>
-
- <dependency>
- <groupId>org.apache.xmlbeans</groupId>
- <artifactId>xmlbeans</artifactId>
- <version>2.6.0</version>
- </dependency>
+ <dependency>
+ <groupId>org.apache.xmlbeans</groupId>
+ <artifactId>xmlbeans</artifactId>
+ <version>2.6.0</version>
+ </dependency>
</dependencies>
</project>