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

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