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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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.0.1-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>${maven.plugin.resources.version}</version>
  20. <executions>
  21. <execution>
  22. <id>copy-sources</id>
  23. <phase>generate-sources</phase>
  24. <goals>
  25. <goal>copy-resources</goal>
  26. </goals>
  27. <configuration>
  28. <outputDirectory>${basedir}/src/main/java</outputDirectory>
  29. <resources>
  30. <resource>
  31. <directory>../../src/java</directory>
  32. </resource>
  33. </resources>
  34. </configuration>
  35. </execution>
  36. <execution>
  37. <id>copy-resources</id>
  38. <phase>generate-resources</phase>
  39. <goals>
  40. <goal>copy-resources</goal>
  41. </goals>
  42. <configuration>
  43. <outputDirectory>${basedir}/src/main/resources</outputDirectory>
  44. <resources>
  45. <resource>
  46. <directory>../../src/resources/main</directory>
  47. </resource>
  48. </resources>
  49. </configuration>
  50. </execution>
  51. <execution>
  52. <id>copy-tests</id>
  53. <!-- here the phase you need -->
  54. <phase>generate-test-sources</phase>
  55. <goals>
  56. <goal>copy-resources</goal>
  57. </goals>
  58. <configuration>
  59. <outputDirectory>${basedir}/src/test/java</outputDirectory>
  60. <resources>
  61. <resource>
  62. <directory>../../src/testcases</directory>
  63. </resource>
  64. </resources>
  65. </configuration>
  66. </execution>
  67. </executions>
  68. </plugin>
  69. <!-- clean copied sources afterwards -->
  70. <plugin>
  71. <artifactId>maven-clean-plugin</artifactId>
  72. <version>${maven.plugin.clean.version}</version>
  73. <configuration>
  74. <filesets>
  75. <fileset>
  76. <directory>src</directory>
  77. <followSymlinks>false</followSymlinks>
  78. </fileset>
  79. </filesets>
  80. </configuration>
  81. </plugin>
  82. <!-- provide the test-jar for other modules -->
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-jar-plugin</artifactId>
  86. <version>${maven.plugin.jar.version}</version>
  87. <executions>
  88. <execution>
  89. <goals>
  90. <goal>test-jar</goal>
  91. </goals>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. <!-- set jvm parameters for surefire plugin -->
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-surefire-plugin</artifactId>
  99. <version>${maven.plugin.surefire.version}</version>
  100. <configuration>
  101. <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp -XX:-OmitStackTraceInFastThrow</argLine>
  102. </configuration>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. <dependencies>
  107. <dependency>
  108. <groupId>org.apache.commons</groupId>
  109. <artifactId>commons-collections4</artifactId>
  110. <version>4.2</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.commons</groupId>
  114. <artifactId>commons-math3</artifactId>
  115. <version>3.6.1</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-codec</groupId>
  119. <artifactId>commons-codec</artifactId>
  120. <version>1.11</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-logging</groupId>
  124. <artifactId>commons-logging</artifactId>
  125. <version>1.2</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>javax.xml.bind</groupId>
  129. <artifactId>jaxb-api</artifactId>
  130. <version>2.3.0</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.sun.xml.bind</groupId>
  134. <artifactId>jaxb-impl</artifactId>
  135. <version>2.3.0.1</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.sun.xml.bind</groupId>
  139. <artifactId>jaxb-core</artifactId>
  140. <version>2.3.0.1</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>javax.activation</groupId>
  144. <artifactId>activation</artifactId>
  145. <version>1.1.1</version>
  146. </dependency>
  147. </dependencies>
  148. </project>