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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.2-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>poi-examples</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apache POI Examples package</name>
  14. <build>
  15. <plugins>
  16. <!-- copy sources, resources and tests in place as otherwise Sonar does not pick them up correctly! -->
  17. <plugin>
  18. <artifactId>maven-resources-plugin</artifactId>
  19. <version>${maven.plugin.resources.version}</version>
  20. <executions>
  21. <execution>
  22. <id>copy-sources</id>
  23. <!-- here the phase you need -->
  24. <phase>generate-sources</phase>
  25. <goals>
  26. <goal>copy-resources</goal>
  27. </goals>
  28. <configuration>
  29. <outputDirectory>${basedir}/src/main/java</outputDirectory>
  30. <resources>
  31. <resource>
  32. <directory>../../src/examples/src</directory>
  33. </resource>
  34. </resources>
  35. </configuration>
  36. </execution>
  37. </executions>
  38. </plugin>
  39. <!-- clean copied sources afterwards -->
  40. <plugin>
  41. <artifactId>maven-clean-plugin</artifactId>
  42. <version>${maven.plugin.clean.version}</version>
  43. <configuration>
  44. <filesets>
  45. <fileset>
  46. <directory>src</directory>
  47. <followSymlinks>false</followSymlinks>
  48. </fileset>
  49. </filesets>
  50. </configuration>
  51. </plugin>
  52. </plugins>
  53. </build>
  54. <dependencies>
  55. <dependency>
  56. <groupId>${project.groupId}</groupId>
  57. <artifactId>poi-main</artifactId>
  58. <version>${project.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>${project.groupId}</groupId>
  62. <artifactId>poi-ooxml</artifactId>
  63. <version>${project.version}</version>
  64. </dependency>
  65. <!-- non-test dependency for UpdateEmbeddedDoc -->
  66. <dependency>
  67. <groupId>junit</groupId>
  68. <artifactId>junit</artifactId>
  69. <version>${junit.version}</version>
  70. </dependency>
  71. </dependencies>
  72. </project>