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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>org.apache.poi</groupId>
  4. <artifactId>poi-parent</artifactId>
  5. <packaging>pom</packaging>
  6. <version>3.16-beta1-SNAPSHOT</version>
  7. <name>Apache POI - the Java API for Microsoft Documents</name>
  8. <description>Maven build of Apache POI for Sonar checks</description>
  9. <url>http://poi.apache.org/</url>
  10. <mailingLists>
  11. <mailingList>
  12. <name>POI Users List</name>
  13. <subscribe>user-subscribe@poi.apache.org</subscribe>
  14. <unsubscribe>user-unsubscribe@poi.apache.org</unsubscribe>
  15. <archive>http://mail-archives.apache.org/mod_mbox/poi-user/</archive>
  16. </mailingList>
  17. <mailingList>
  18. <name>POI Developer List</name>
  19. <subscribe>dev-subscribe@poi.apache.org</subscribe>
  20. <unsubscribe>dev-unsubscribe@poi.apache.org</unsubscribe>
  21. <archive>http://mail-archives.apache.org/mod_mbox/poi-dev/</archive>
  22. </mailingList>
  23. </mailingLists>
  24. <licenses>
  25. <license>
  26. <name>The Apache Software License, Version 2.0</name>
  27. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  28. </license>
  29. </licenses>
  30. <organization>
  31. <name>Apache Software Foundation</name>
  32. <url>http://www.apache.org/</url>
  33. </organization>
  34. <issueManagement>
  35. <system>bugzilla</system>
  36. <url>https://issues.apache.org/bugzilla/</url>
  37. </issueManagement>
  38. <scm>
  39. <connection>scm:svn:http://svn.apache.org/repos/asf/poi/trunk</connection>
  40. <developerConnection>scm:svn:https://svn.apache.org/repos/asf/poi/trunk</developerConnection>
  41. <url>http://svn.apache.org/viewvc/poi</url>
  42. </scm>
  43. <modules>
  44. <module>main</module>
  45. <module>ooxml-schema</module>
  46. <module>ooxml-schema-encryption</module>
  47. <module>ooxml-schema-security</module>
  48. <module>ooxml</module>
  49. <module>scratchpad</module>
  50. <module>excelant</module>
  51. <module>examples</module>
  52. </modules>
  53. <properties>
  54. <project.build.sourceEncoding>ASCII</project.build.sourceEncoding>
  55. <!-- Try to disable running SVN blame as it causes errors here because the source is copied from the actual SVN location here! -->
  56. <sonar.scm.disabled>true</sonar.scm.disabled>
  57. <!-- define some of the third-party or plugin-versions globally to use the same in all modules -->
  58. <xmlbeans.version>2.6.0</xmlbeans.version>
  59. <junit.version>4.12</junit.version>
  60. <maven.plugin.resources.version>3.0.1</maven.plugin.resources.version>
  61. <maven.plugin.jar.version>3.0.1</maven.plugin.jar.version>
  62. <maven.plugin.clean.version>3.0.0</maven.plugin.clean.version>
  63. <maven.plugin.download.version>1.1.0</maven.plugin.download.version>
  64. <maven.plugin.antrun.version>1.8</maven.plugin.antrun.version>
  65. <maven.plugin.surefire.version>2.19.1</maven.plugin.surefire.version>
  66. </properties>
  67. <build>
  68. <pluginManagement>
  69. <plugins>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-compiler-plugin</artifactId>
  73. <version>3.5.1</version>
  74. <configuration>
  75. <source>1.6</source>
  76. <target>1.6</target>
  77. </configuration>
  78. </plugin>
  79. </plugins>
  80. </pluginManagement>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-surefire-plugin</artifactId>
  85. <version>${maven.plugin.surefire.version}</version>
  86. <dependencies>
  87. <dependency>
  88. <groupId>org.apache.maven.surefire</groupId>
  89. <artifactId>surefire-junit47</artifactId>
  90. <version>${maven.plugin.surefire.version}</version>
  91. </dependency>
  92. </dependencies>
  93. <configuration>
  94. <systemPropertyVariables>
  95. <POI.testdata.path>../../test-data</POI.testdata.path>
  96. <java.awt.headless>true</java.awt.headless>
  97. <org.apache.poi.util.POILogger>org.apache.poi.util.NullLogger</org.apache.poi.util.POILogger>
  98. </systemPropertyVariables>
  99. <!-- use to following to analyze OOM issues: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -->
  100. <argLine>-Duser.language=en -Duser.country=US -Xmx1024m</argLine>
  101. <excludes>
  102. <exclude>**/All*Tests.java</exclude>
  103. <exclude>**/TestUnfixedBugs.java</exclude>
  104. <exclude>**/TestcaseRecordInputStream.java</exclude>
  105. <exclude>**/POITestCase.java</exclude>
  106. <!-- TODO: error about no public construct, seems to run with JUnit 3.8... -->
  107. <exclude>**/TestWordToConverterSuite*.java</exclude>
  108. <exclude>**/TestExcelConverterSuite*.java</exclude>
  109. </excludes>
  110. <!--test>TestPPTX2PNG</test-->
  111. <!--parallel>both</parallel>
  112. <threadCount>10</threadCount-->
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. <dependencies>
  118. <dependency>
  119. <groupId>junit</groupId>
  120. <artifactId>junit</artifactId>
  121. <version>${junit.version}</version>
  122. <scope>test</scope>
  123. </dependency>
  124. </dependencies>
  125. <profiles>
  126. <!-- We need a fair amount of memory to compile the xml schema, -->
  127. <!-- but limit it in case it goes wrong! -->
  128. <!-- Pick the right amount based on 32 vs 64 bit jvm -->
  129. <!-- ********************************************************** -->
  130. <!-- If you are using IntelliJ, you might want to check -->
  131. <!-- http://stackoverflow.com/questions/24115142 -->
  132. <!-- ********************************************************** -->
  133. <profile>
  134. <id>32bitstuff</id>
  135. <activation>
  136. <property>
  137. <name>sun.arch.data.model</name>
  138. <value>32</value>
  139. </property>
  140. </activation>
  141. <properties>
  142. <maven.compiler.maxmem>512m</maven.compiler.maxmem>
  143. <argLine>-Xmx768m -XX:MaxPermSize=128m @{argLine}</argLine>
  144. </properties>
  145. </profile>
  146. <profile>
  147. <id>64bitstuff</id>
  148. <activation>
  149. <property>
  150. <name>sun.arch.data.model</name>
  151. <value>64</value>
  152. </property>
  153. </activation>
  154. <properties>
  155. <maven.compiler.maxmem>768m</maven.compiler.maxmem>
  156. <argLine>-Xmx1024m -XX:MaxPermSize=256m @{argLine}</argLine>
  157. </properties>
  158. </profile>
  159. <profile>
  160. <id>xmlbean</id>
  161. <activation>
  162. <file><exists>xmlbeans.marker</exists></file>
  163. </activation>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.codehaus.mojo</groupId>
  168. <artifactId>xmlbeans-maven-plugin</artifactId>
  169. <version>2.3.3</version>
  170. <executions>
  171. <execution>
  172. <phase>process-sources</phase>
  173. <goals>
  174. <goal>xmlbeans</goal>
  175. </goals>
  176. <configuration>
  177. <schemaDirectory>${basedir}/target/schemas</schemaDirectory>
  178. <javaSource>1.5</javaSource>
  179. <noJavac>true</noJavac>
  180. <noUpa>${xmlbeans.noUpa}</noUpa>
  181. <noPvr>${xmlbeans.noPvr}</noPvr>
  182. <xmlConfigs>
  183. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionCertificate.xsdconfig</xmlConfig>
  184. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionInfo.xsdconfig</xmlConfig>
  185. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionPassword.xsdconfig</xmlConfig>
  186. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/schemas/ooxmlSchemas.xsdconfig</xmlConfig>
  187. </xmlConfigs>
  188. </configuration>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. <plugin>
  193. <artifactId>maven-antrun-plugin</artifactId>
  194. <version>${maven.plugin.antrun.version}</version>
  195. <executions>
  196. <execution>
  197. <id>copy-xmltype-and-xsdconfig</id>
  198. <phase>generate-sources</phase>
  199. <goals><goal>run</goal></goals>
  200. <configuration>
  201. <target>
  202. <copy todir="${basedir}/target/generated-sources/xmlbeans">
  203. <fileset dir="${basedir}/../../src/ooxml/java">
  204. <include name="org/apache/poi/POIXMLTypeLoader.java"/>
  205. <include name="org/apache/poi/util/DocumentHelper.java"/>
  206. <include name="org/apache/poi/util/SAXHelper.java"/>
  207. </fileset>
  208. <fileset dir="${basedir}/../../src/java">
  209. <include name="org/apache/poi/util/POILogFactory.java"/>
  210. <include name="org/apache/poi/util/POILogger.java"/>
  211. <include name="org/apache/poi/util/NullLogger.java"/>
  212. <include name="org/apache/poi/util/Internal.java"/>
  213. </fileset>
  214. </copy>
  215. <copy todir="${basedir}/target/schemas">
  216. <fileset dir="${basedir}/../../src/ooxml/resources/org/apache/poi/schemas"/>
  217. </copy>
  218. </target>
  219. </configuration>
  220. </execution>
  221. <execution>
  222. <id>replace-xmltypeloader</id>
  223. <phase>process-sources</phase>
  224. <goals><goal>run</goal></goals>
  225. <configuration>
  226. <target>
  227. <replace dir="${basedir}/target/generated-sources/xmlbeans" includes="**/*.java" excludes="**/impl/**">
  228. <replacetoken>org.apache.xmlbeans.XmlBeans.getContextTypeLoader()</replacetoken>
  229. <replacevalue>org.apache.poi.POIXMLTypeLoader</replacevalue>
  230. </replace>
  231. </target>
  232. </configuration>
  233. </execution>
  234. <execution>
  235. <id>remove-xmltypeloader-from-schema-jar</id>
  236. <phase>prepare-package</phase>
  237. <goals><goal>run</goal></goals>
  238. <configuration>
  239. <target>
  240. <touch file="${basedir}/target/generated-sources/xmlbeans/.staleFlag"/>
  241. <delete dir="${basedir}/target/classes/org/apache"/>
  242. </target>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. </plugins>
  248. </build>
  249. <dependencies>
  250. <dependency>
  251. <groupId>org.apache.xmlbeans</groupId>
  252. <artifactId>xmlbeans</artifactId>
  253. <version>${xmlbeans.version}</version>
  254. </dependency>
  255. </dependencies>
  256. </profile>
  257. </profiles>
  258. </project>