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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.12-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>poi-ooxml-schema</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apach POI - Openxmlformats 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. <!-- Download and unpack the OfficeOpenXML Schema and use xmlbeans to create classes from the XSDs -->
  21. <plugin>
  22. <groupId>com.googlecode.maven-download-plugin</groupId>
  23. <artifactId>maven-download-plugin</artifactId>
  24. <version>1.1.0</version>
  25. <executions>
  26. <execution>
  27. <id>install-xsds</id>
  28. <phase>generate-sources</phase>
  29. <goals>
  30. <goal>wget</goal>
  31. </goals>
  32. <configuration>
  33. <url>http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20(PDF).zip</url>
  34. <unpack>true</unpack>
  35. <md5>abe6bb6e7799e854934b3c634e8bcf7b</md5>
  36. </configuration>
  37. </execution>
  38. </executions>
  39. </plugin>
  40. <plugin>
  41. <groupId>org.apache.maven.plugins</groupId>
  42. <artifactId>maven-antrun-plugin</artifactId>
  43. <version>1.6</version>
  44. <executions>
  45. <execution>
  46. <id>unzip-schema</id>
  47. <phase>generate-sources</phase>
  48. <configuration>
  49. <target>
  50. <echo message="unzip schemas" />
  51. <unzip src="target/OfficeOpenXML-XMLSchema.zip" dest="target/schemas/" />
  52. </target>
  53. </configuration>
  54. <goals>
  55. <goal>run</goal>
  56. </goals>
  57. </execution>
  58. </executions>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.codehaus.mojo</groupId>
  62. <artifactId>xmlbeans-maven-plugin</artifactId>
  63. <version>2.3.3</version>
  64. <executions>
  65. <execution>
  66. <phase>generate-sources</phase>
  67. <goals>
  68. <goal>xmlbeans</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. <configuration>
  73. <schemaDirectory>target/schemas</schemaDirectory>
  74. <javaSource>1.5</javaSource>
  75. <optimize>yes</optimize>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. <dependencies>
  81. <dependency>
  82. <groupId>${project.groupId}</groupId>
  83. <artifactId>poi-main</artifactId>
  84. <version>${project.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>${project.groupId}</groupId>
  88. <artifactId>poi-scratchpad</artifactId>
  89. <version>${project.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.xmlbeans</groupId>
  93. <artifactId>xmlbeans</artifactId>
  94. <version>2.6.0</version>
  95. </dependency>
  96. </dependencies>
  97. </project>