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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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-excelant</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apache POI ExcelAnt 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>../../poi-excelant/src/main/java</directory>
  33. </resource>
  34. </resources>
  35. </configuration>
  36. </execution>
  37. <execution>
  38. <id>copy-resources</id>
  39. <!-- here the phase you need -->
  40. <phase>generate-resources</phase>
  41. <goals>
  42. <goal>copy-resources</goal>
  43. </goals>
  44. <configuration>
  45. <outputDirectory>${basedir}/src/main/resources</outputDirectory>
  46. <resources>
  47. <resource>
  48. <directory>../../poi-excelant/src/main/resources</directory>
  49. </resource>
  50. <resource>
  51. <directory>../../poi-excelant/src/test/resources</directory>
  52. </resource>
  53. </resources>
  54. </configuration>
  55. </execution>
  56. <execution>
  57. <id>copy-tests</id>
  58. <!-- here the phase you need -->
  59. <phase>generate-test-sources</phase>
  60. <goals>
  61. <goal>copy-resources</goal>
  62. </goals>
  63. <configuration>
  64. <outputDirectory>${basedir}/src/test/java</outputDirectory>
  65. <resources>
  66. <resource>
  67. <directory>../../poi-excelant/src/test/java</directory>
  68. </resource>
  69. </resources>
  70. </configuration>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <!-- clean copied sources afterwards -->
  75. <plugin>
  76. <artifactId>maven-clean-plugin</artifactId>
  77. <version>${maven.plugin.clean.version}</version>
  78. <configuration>
  79. <filesets>
  80. <fileset>
  81. <directory>src</directory>
  82. <followSymlinks>false</followSymlinks>
  83. </fileset>
  84. </filesets>
  85. </configuration>
  86. </plugin>
  87. </plugins>
  88. </build>
  89. <dependencies>
  90. <dependency>
  91. <groupId>${project.groupId}</groupId>
  92. <artifactId>poi-main</artifactId>
  93. <version>${project.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>${project.groupId}</groupId>
  97. <artifactId>poi-main</artifactId>
  98. <version>${project.version}</version>
  99. <type>test-jar</type>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>${project.groupId}</groupId>
  104. <artifactId>poi-ooxml</artifactId>
  105. <version>${project.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.ant</groupId>
  109. <artifactId>ant</artifactId>
  110. <version>1.10.9</version>
  111. </dependency>
  112. </dependencies>
  113. </project>