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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.apache.poi</groupId>
  5. <artifactId>poi-parent</artifactId>
  6. <packaging>pom</packaging>
  7. <version>5.0.1-SNAPSHOT</version>
  8. <name>Apache POI - the Java API for Microsoft Documents</name>
  9. <description>Maven build of Apache POI for Sonar checks</description>
  10. <url>https://poi.apache.org/</url>
  11. <mailingLists>
  12. <mailingList>
  13. <name>POI Users List</name>
  14. <subscribe>user-subscribe@poi.apache.org</subscribe>
  15. <unsubscribe>user-unsubscribe@poi.apache.org</unsubscribe>
  16. <archive>http://mail-archives.apache.org/mod_mbox/poi-user/</archive>
  17. </mailingList>
  18. <mailingList>
  19. <name>POI Developer List</name>
  20. <subscribe>dev-subscribe@poi.apache.org</subscribe>
  21. <unsubscribe>dev-unsubscribe@poi.apache.org</unsubscribe>
  22. <archive>http://mail-archives.apache.org/mod_mbox/poi-dev/</archive>
  23. </mailingList>
  24. </mailingLists>
  25. <licenses>
  26. <license>
  27. <name>Apache License, Version 2.0</name>
  28. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  29. </license>
  30. </licenses>
  31. <organization>
  32. <name>Apache Software Foundation</name>
  33. <url>http://www.apache.org/</url>
  34. </organization>
  35. <issueManagement>
  36. <system>Bugzilla</system>
  37. <url>https://bz.apache.org/bugzilla/</url>
  38. </issueManagement>
  39. <scm>
  40. <connection>scm:svn:https://svn.apache.org/repos/asf/poi/trunk</connection>
  41. <developerConnection>scm:svn:https://svn.apache.org/repos/asf/poi/trunk</developerConnection>
  42. <url>https://svn.apache.org/viewvc/poi</url>
  43. </scm>
  44. <repositories>
  45. <repository>
  46. <id>apache-releases-repo</id>
  47. <name>apache releases repo</name>
  48. <url>https://repository.apache.org/content/repositories/releases</url>
  49. </repository>
  50. </repositories>
  51. <modules>
  52. <module>main</module>
  53. <module>ooxml-full</module>
  54. <module>ooxml</module>
  55. <module>scratchpad</module>
  56. <module>excelant</module>
  57. <module>examples</module>
  58. <module>integration-test</module>
  59. </modules>
  60. <properties>
  61. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  62. <!-- Try to disable running SVN blame as it causes errors here because the source is copied from the actual SVN location here! -->
  63. <sonar.scm.disabled>true</sonar.scm.disabled>
  64. <sonar.organization>apache</sonar.organization>
  65. <sonar.projectKey>poi-parent</sonar.projectKey>
  66. <sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
  67. <sonar.host.url>https://sonarcloud.io</sonar.host.url>
  68. <!-- sonar.jacoco.reportPaths>target/jacoco.exec</sonar.jacoco.reportPaths -->
  69. <sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
  70. <!-- define some of the third-party or plugin-versions globally to use the same in all modules -->
  71. <xmlbeans.version>4.0.0</xmlbeans.version>
  72. <junit.version>5.7.0</junit.version>
  73. <xmlunit.version>2.8.2</xmlunit.version>
  74. <mockito.version>3.6.28</mockito.version>
  75. <maven.plugin.resources.version>3.2.0</maven.plugin.resources.version>
  76. <maven.plugin.jar.version>3.2.0</maven.plugin.jar.version>
  77. <maven.plugin.clean.version>3.1.0</maven.plugin.clean.version>
  78. <maven.plugin.download.version>1.6.0</maven.plugin.download.version>
  79. <maven.plugin.antrun.version>3.0.0</maven.plugin.antrun.version>
  80. <maven.plugin.surefire.version>3.0.0-M5</maven.plugin.surefire.version>
  81. </properties>
  82. <build>
  83. <pluginManagement>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>3.8.1</version>
  89. <configuration>
  90. <source>1.8</source>
  91. <target>1.8</target>
  92. </configuration>
  93. </plugin>
  94. </plugins>
  95. </pluginManagement>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-surefire-plugin</artifactId>
  100. <version>${maven.plugin.surefire.version}</version>
  101. <configuration>
  102. <printSummary>false</printSummary>
  103. <systemPropertyVariables>
  104. <POI.testdata.path>../../test-data</POI.testdata.path>
  105. <java.awt.headless>true</java.awt.headless>
  106. </systemPropertyVariables>
  107. <!-- use to following to analyze OOM issues: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -->
  108. <argLine>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=${basedir}/target/tmp -XX:-OmitStackTraceInFastThrow</argLine>
  109. <excludes>
  110. <exclude>**/All*Tests.java</exclude>
  111. <exclude>**/TestUnfixedBugs.java</exclude>
  112. <exclude>**/TestcaseRecordInputStream.java</exclude>
  113. <exclude>**/POITestCase.java</exclude>
  114. <!-- TODO: error about no public construct, seems to run with JUnit 3.8... -->
  115. <exclude>**/TestWordToConverterSuite*.java</exclude>
  116. <exclude>**/TestExcelConverterSuite*.java</exclude>
  117. </excludes>
  118. <!--test>TestPPTX2PNG</test-->
  119. <!--parallel>both</parallel>
  120. <threadCount>10</threadCount-->
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.jacoco</groupId>
  125. <artifactId>jacoco-maven-plugin</artifactId>
  126. <version>0.8.6</version>
  127. <executions>
  128. <execution>
  129. <goals>
  130. <goal>prepare-agent</goal>
  131. </goals>
  132. </execution>
  133. <execution>
  134. <id>report</id>
  135. <phase>prepare-package</phase>
  136. <goals>
  137. <goal>report</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. <dependencies>
  145. <dependency>
  146. <groupId>org.junit.jupiter</groupId>
  147. <artifactId>junit-jupiter</artifactId>
  148. <version>${junit.version}</version>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.xmlunit</groupId>
  153. <artifactId>xmlunit-core</artifactId>
  154. <version>${xmlunit.version}</version>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.mockito</groupId>
  159. <artifactId>mockito-core</artifactId>
  160. <version>${mockito.version}</version>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.hamcrest</groupId>
  165. <artifactId>hamcrest</artifactId>
  166. <version>2.2</version>
  167. <scope>test</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.apache.logging.log4j</groupId>
  171. <artifactId>log4j-core</artifactId>
  172. <version>2.14.0</version>
  173. <scope>test</scope>
  174. </dependency>
  175. </dependencies>
  176. <profiles>
  177. <!-- We need a fair amount of memory to compile the xml schema, -->
  178. <!-- but limit it in case it goes wrong! -->
  179. <!-- Pick the right amount based on 32 vs 64 bit jvm -->
  180. <!-- ********************************************************** -->
  181. <!-- If you are using IntelliJ, you might want to check -->
  182. <!-- http://stackoverflow.com/questions/24115142 -->
  183. <!-- ********************************************************** -->
  184. <profile>
  185. <id>32bitstuff</id>
  186. <activation>
  187. <property>
  188. <name>sun.arch.data.model</name>
  189. <value>32</value>
  190. </property>
  191. </activation>
  192. <properties>
  193. <maven.compiler.maxmem>512m</maven.compiler.maxmem>
  194. <argLine>-Xmx768m</argLine>
  195. </properties>
  196. </profile>
  197. <profile>
  198. <id>64bitstuff</id>
  199. <activation>
  200. <property>
  201. <name>sun.arch.data.model</name>
  202. <value>64</value>
  203. </property>
  204. </activation>
  205. <properties>
  206. <maven.compiler.maxmem>768m</maven.compiler.maxmem>
  207. <argLine>-Xmx1024m</argLine>
  208. </properties>
  209. </profile>
  210. </profiles>
  211. </project>