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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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>3.11-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>poi-ooxml-schema-encryption</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apach POI - Openxmlformats Encryption Schema package</name>
  14. <properties>
  15. <!-- see http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus for details of this property -->
  16. <sonar.exclusions>target/generated-sources/*</sonar.exclusions>
  17. </properties>
  18. <build>
  19. <plugins>
  20. <plugin>
  21. <groupId>org.codehaus.mojo</groupId>
  22. <artifactId>xmlbeans-maven-plugin</artifactId>
  23. <version>2.3.3</version>
  24. <executions>
  25. <execution>
  26. <phase>generate-sources</phase>
  27. <goals>
  28. <goal>xmlbeans</goal>
  29. </goals>
  30. </execution>
  31. </executions>
  32. <configuration>
  33. <schemaDirectory>../../src/ooxml/resources/org/apache/poi/poifs/crypt</schemaDirectory>
  34. <javaSource>1.5</javaSource>
  35. <optimize>yes</optimize>
  36. </configuration>
  37. </plugin>
  38. <!-- TODO: ugly workaround as XMLBeans in Maven creates slightly different source compared to the Ant XMLBeans task!?!
  39. see http://stackoverflow.com/questions/21796000/xmlbeans-creates-different-code-when-running-via-ant-and-maven
  40. -->
  41. <plugin>
  42. <groupId>com.google.code.maven-replacer-plugin</groupId>
  43. <artifactId>replacer</artifactId>
  44. <!-- Note: There is a bug with version 1.5.2 which caused the replacement to not find any files sometimes! -->
  45. <version>1.5.1</version>
  46. <executions>
  47. <execution>
  48. <phase>generate-sources</phase>
  49. <goals>
  50. <goal>replace</goal>
  51. </goals>
  52. </execution>
  53. </executions>
  54. <configuration>
  55. <includes>
  56. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/encryption/CTKeyEncryptor.java</include>
  57. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/encryption/impl/CTKeyEncryptorImpl.java</include>
  58. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/impl/EncryptedKeyDocumentImpl.java</include>
  59. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/certificate/EncryptedKeyDocument.java</include>
  60. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/certificate/impl/EncryptedKeyDocumentImpl.java</include>
  61. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/EncryptedKeyDocument.java</include>
  62. <include>target/generated-sources/xmlbeans/com/microsoft/schemas/office/x2006/keyEncryptor/password/impl/EncryptedKeyDocumentImpl.java</include>
  63. </includes>
  64. <replacements>
  65. <replacement>
  66. <token>etEncryptedKey2</token>
  67. <value>etEncryptedCertificateKey</value>
  68. </replacement>
  69. <replacement>
  70. <token>etEncryptedKey</token>
  71. <value>etEncryptedPasswordKey</value>
  72. </replacement>
  73. <replacement>
  74. <token>ewEncryptedKey2</token>
  75. <value>ewEncryptedCertificateKey</value>
  76. </replacement>
  77. <replacement>
  78. <token>ewEncryptedKey</token>
  79. <value>ewEncryptedPasswordKey</value>
  80. </replacement>
  81. <replacement>
  82. <token>encryptedKey2\)</token>
  83. <value>encryptedCertificateKey)</value>
  84. </replacement>
  85. <replacement>
  86. <token>encryptedKey\)</token>
  87. <value>encryptedPasswordKey)</value>
  88. </replacement>
  89. </replacements>
  90. </configuration>
  91. </plugin>
  92. </plugins>
  93. </build>
  94. <dependencies>
  95. <dependency>
  96. <groupId>org.apache.xmlbeans</groupId>
  97. <artifactId>xmlbeans</artifactId>
  98. <version>2.6.0</version>
  99. </dependency>
  100. </dependencies>
  101. </project>