2015-08-16 16:51:40 -04:00
|
|
|
<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>
|
2016-04-03 18:25:55 -04:00
|
|
|
<version>3.15-beta2-SNAPSHOT</version>
|
2015-11-21 14:37:26 -05:00
|
|
|
<relativePath>..</relativePath>
|
2015-08-16 16:51:40 -04:00
|
|
|
</parent>
|
|
|
|
<artifactId>poi-ooxml-schema-security</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
2015-11-21 14:37:26 -05:00
|
|
|
<name>Apache POI - Openxmlformats Security-Schema package</name>
|
2015-08-16 16:51:40 -04:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- see http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus for details of this property -->
|
|
|
|
<sonar.exclusions>target/generated-sources/*</sonar.exclusions>
|
2015-08-20 19:06:00 -04:00
|
|
|
<maven.compiler.fork>true</maven.compiler.fork>
|
2015-11-21 14:37:26 -05:00
|
|
|
<xmlbeans.noUpa>true</xmlbeans.noUpa>
|
|
|
|
<xmlbeans.noPvr>true</xmlbeans.noPvr>
|
2015-08-16 16:51:40 -04:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2015-08-20 19:06:00 -04:00
|
|
|
<!-- Download and unpack the OfficeOpenXML Schema and use xmlbeans to create classes from the XSDs -->
|
|
|
|
<!-- use maven plugin instead of ant tasks get because of caching feature ... -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.googlecode.maven-download-plugin</groupId>
|
|
|
|
<artifactId>maven-download-plugin</artifactId>
|
2016-06-11 04:45:28 -04:00
|
|
|
<version>${maven.plugin.download.version}</version>
|
2015-08-20 19:06:00 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-1</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>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-2</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-3</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-4</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-5</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-6</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://uri.etsi.org/01903/v1.3.2/XAdES.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>install-xsds-part-7</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals><goal>wget</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>target/schemas</outputDirectory>
|
|
|
|
<url>http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd</url>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2016-06-11 04:45:28 -04:00
|
|
|
<version>${maven.plugin.antrun.version}</version>
|
2015-08-20 19:06:00 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unzip-schema</id>
|
|
|
|
<phase>generate-sources</phase>
|
2015-11-21 14:37:26 -05:00
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
2015-08-20 19:06:00 -04:00
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<echo message="unzip schemas" />
|
|
|
|
<unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/" />
|
|
|
|
<copy file="../../src/ooxml/resources/org/apache/poi/poifs/crypt/signatureInfo.xsd"
|
|
|
|
todir="target/schemas"/>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2015-08-16 16:51:40 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
2015-08-17 21:16:26 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.xmlbeans</groupId>
|
|
|
|
<artifactId>xmlbeans</artifactId>
|
2016-06-11 04:45:28 -04:00
|
|
|
<version>${xmlbeans.version}</version>
|
2015-08-17 21:16:26 -04:00
|
|
|
</dependency>
|
2015-08-16 16:51:40 -04:00
|
|
|
<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>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|