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

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