You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4. http://maven.apache.org/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.apache.poi</groupId>
  8. <artifactId>poi-parent</artifactId>
  9. <version>4.0.1-SNAPSHOT</version>
  10. <relativePath>..</relativePath>
  11. </parent>
  12. <artifactId>poi-ooxml-schema-security</artifactId>
  13. <packaging>jar</packaging>
  14. <name>Apache POI - Openxmlformats Security-Schema package</name>
  15. <properties>
  16. <!-- see http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus for details of this property -->
  17. <sonar.exclusions>target/generated-sources/*</sonar.exclusions>
  18. <maven.compiler.fork>true</maven.compiler.fork>
  19. <xmlbeans.noUpa>true</xmlbeans.noUpa>
  20. <xmlbeans.noPvr>true</xmlbeans.noPvr>
  21. </properties>
  22. <build>
  23. <plugins>
  24. <!-- Download and unpack the OfficeOpenXML Schema and use xmlbeans to create classes from the XSDs -->
  25. <!-- use maven plugin instead of ant tasks get because of caching feature ... -->
  26. <plugin>
  27. <groupId>com.googlecode.maven-download-plugin</groupId>
  28. <artifactId>maven-download-plugin</artifactId>
  29. <version>${maven.plugin.download.version}</version>
  30. <executions>
  31. <execution>
  32. <id>install-xsds-part-1</id>
  33. <phase>generate-sources</phase>
  34. <goals><goal>wget</goal></goals>
  35. <configuration>
  36. <url>http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%202%20(PDF).zip</url>
  37. <unpack>true</unpack>
  38. <md5>c8f0eac388691d5be0d1647146400a10</md5>
  39. </configuration>
  40. </execution>
  41. <execution>
  42. <id>install-xsds-part-2</id>
  43. <phase>generate-sources</phase>
  44. <goals><goal>wget</goal></goals>
  45. <configuration>
  46. <outputDirectory>target/schemas</outputDirectory>
  47. <url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd</url>
  48. </configuration>
  49. </execution>
  50. <execution>
  51. <id>install-xsds-part-3</id>
  52. <phase>generate-sources</phase>
  53. <goals><goal>wget</goal></goals>
  54. <configuration>
  55. <outputDirectory>target/schemas</outputDirectory>
  56. <url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd</url>
  57. </configuration>
  58. </execution>
  59. <execution>
  60. <id>install-xsds-part-4</id>
  61. <phase>generate-sources</phase>
  62. <goals><goal>wget</goal></goals>
  63. <configuration>
  64. <outputDirectory>target/schemas</outputDirectory>
  65. <url>http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd</url>
  66. </configuration>
  67. </execution>
  68. <execution>
  69. <id>install-xsds-part-5</id>
  70. <phase>generate-sources</phase>
  71. <goals><goal>wget</goal></goals>
  72. <configuration>
  73. <outputDirectory>target/schemas</outputDirectory>
  74. <url>http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd</url>
  75. </configuration>
  76. </execution>
  77. <execution>
  78. <id>install-xsds-part-6</id>
  79. <phase>generate-sources</phase>
  80. <goals><goal>wget</goal></goals>
  81. <configuration>
  82. <outputDirectory>target/schemas</outputDirectory>
  83. <url>http://uri.etsi.org/01903/v1.3.2/XAdES.xsd</url>
  84. </configuration>
  85. </execution>
  86. <execution>
  87. <id>install-xsds-part-7</id>
  88. <phase>generate-sources</phase>
  89. <goals><goal>wget</goal></goals>
  90. <configuration>
  91. <outputDirectory>target/schemas</outputDirectory>
  92. <url>http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd</url>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-antrun-plugin</artifactId>
  100. <version>${maven.plugin.antrun.version}</version>
  101. <executions>
  102. <execution>
  103. <id>unzip-schema</id>
  104. <phase>generate-sources</phase>
  105. <goals>
  106. <goal>run</goal>
  107. </goals>
  108. <configuration>
  109. <target>
  110. <echo message="unzip schemas" />
  111. <unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/" />
  112. <copy file="../../src/ooxml/resources/org/apache/poi/poifs/crypt/signatureInfo.xsd"
  113. todir="target/schemas"/>
  114. </target>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. <dependencies>
  122. <dependency>
  123. <groupId>org.apache.xmlbeans</groupId>
  124. <artifactId>xmlbeans</artifactId>
  125. <version>${xmlbeans.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>${project.groupId}</groupId>
  129. <artifactId>poi-main</artifactId>
  130. <version>${project.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>${project.groupId}</groupId>
  134. <artifactId>poi-scratchpad</artifactId>
  135. <version>${project.version}</version>
  136. </dependency>
  137. </dependencies>
  138. </project>