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

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