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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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>3.12-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>poi-main</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Apache POI Main 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>2.6</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/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/resources/main</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/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>2.5</version>
  75. <configuration>
  76. <filesets>
  77. <fileset>
  78. <directory>src</directory>
  79. <followSymlinks>false</followSymlinks>
  80. </fileset>
  81. </filesets>
  82. </configuration>
  83. </plugin>
  84. <!-- provide the test-jar for other modules -->
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-jar-plugin</artifactId>
  88. <version>2.4</version>
  89. <executions>
  90. <execution>
  91. <goals>
  92. <goal>test-jar</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. <dependencies>
  100. <dependency>
  101. <groupId>commons-codec</groupId>
  102. <artifactId>commons-codec</artifactId>
  103. <version>1.9</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>commons-logging</groupId>
  107. <artifactId>commons-logging</artifactId>
  108. <version>1.1.3</version>
  109. </dependency>
  110. </dependencies>
  111. </project>