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 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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>5.0.0-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>download-maven-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>https://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>https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd</url>
  48. </configuration>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-antrun-plugin</artifactId>
  55. <version>${maven.plugin.antrun.version}</version>
  56. <executions>
  57. <execution>
  58. <id>unzip-schema</id>
  59. <phase>generate-sources</phase>
  60. <goals>
  61. <goal>run</goal>
  62. </goals>
  63. <configuration>
  64. <target>
  65. <echo message="unzip schemas" />
  66. <unzip src="target/OpenPackagingConventions-XMLSchema.zip" dest="target/schemas/">
  67. <patternset>
  68. <include name="opc-digSig.xsd"/>
  69. <include name="opc-relationships.xsd"/>
  70. </patternset>
  71. </unzip>
  72. <copy todir="target/schemas">
  73. <fileset dir="../../src/ooxml/resources/org/apache/poi">
  74. <include name="poifs/crypt/signatureInfo.xsd"/>
  75. <include name="schemas/XAdES*.xsd"/>
  76. </fileset>
  77. </copy>
  78. </target>
  79. </configuration>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. </plugins>
  84. </build>
  85. <dependencies>
  86. <dependency>
  87. <groupId>org.apache.xmlbeans</groupId>
  88. <artifactId>xmlbeans</artifactId>
  89. <version>${xmlbeans.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>${project.groupId}</groupId>
  93. <artifactId>poi-main</artifactId>
  94. <version>${project.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>${project.groupId}</groupId>
  98. <artifactId>poi-scratchpad</artifactId>
  99. <version>${project.version}</version>
  100. </dependency>
  101. </dependencies>
  102. </project>