85d45501c9
svn-ignore two more generated src-directories git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696492 13f79535-47bb-0310-9956-ffa450edef68
136 lines
4.6 KiB
XML
136 lines
4.6 KiB
XML
<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.13-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>poi-ooxml-schema</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Apach 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>
|
|
</properties>
|
|
|
|
<build>
|
|
<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-part-4</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>
|
|
<execution>
|
|
<id>install-xsds-part-2</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%202%20(PDF).zip</url>
|
|
<unpack>true</unpack>
|
|
<md5>c8f0eac388691d5be0d1647146400a10</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/" />
|
|
<unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/" />
|
|
|
|
<property name="ooxml.xsds.dc.1" value="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd"/>
|
|
<property name="ooxml.xsds.dc.2" value="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd"/>
|
|
<property name="ooxml.xsds.dc.3" value="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd"/>
|
|
<property name="ooxml.xsds.dsig.1" value="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
|
|
<property name="ooxml.xsds.dsig.2" value="http://uri.etsi.org/01903/v1.3.2/XAdES.xsd"/>
|
|
<property name="ooxml.xsds.dsig.3" value="http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd"/>
|
|
|
|
<get dest="target/schemas" skipexisting="true">
|
|
<url url="${ooxml.xsds.dc.1}"/>
|
|
<url url="${ooxml.xsds.dc.2}"/>
|
|
<url url="${ooxml.xsds.dc.3}"/>
|
|
<url url="${ooxml.xsds.dsig.1}"/>
|
|
<url url="${ooxml.xsds.dsig.2}"/>
|
|
<url url="${ooxml.xsds.dsig.3}"/>
|
|
</get>
|
|
</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>
|
|
<noUpa>true</noUpa>
|
|
<noPvr>true</noPvr>
|
|
<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.6.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|