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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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.15-beta2-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. </properties>
  58. <build>
  59. <pluginManagement>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-compiler-plugin</artifactId>
  64. <version>3.3</version>
  65. <configuration>
  66. <source>1.6</source>
  67. <target>1.6</target>
  68. </configuration>
  69. </plugin>
  70. </plugins>
  71. </pluginManagement>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <version>2.19</version>
  77. <dependencies>
  78. <dependency>
  79. <groupId>org.apache.maven.surefire</groupId>
  80. <artifactId>surefire-junit47</artifactId>
  81. <version>2.19</version>
  82. </dependency>
  83. </dependencies>
  84. <configuration>
  85. <systemPropertyVariables>
  86. <POI.testdata.path>../../test-data</POI.testdata.path>
  87. <java.awt.headless>true</java.awt.headless>
  88. <org.apache.poi.util.POILogger>org.apache.poi.util.NullLogger</org.apache.poi.util.POILogger>
  89. </systemPropertyVariables>
  90. <!-- use to following to analyze OOM issues: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -->
  91. <argLine>-Duser.language=en -Duser.country=US -Xmx1024m</argLine>
  92. <excludes>
  93. <exclude>**/All*Tests.java</exclude>
  94. <exclude>**/TestUnfixedBugs.java</exclude>
  95. <exclude>**/TestcaseRecordInputStream.java</exclude>
  96. <exclude>**/POITestCase.java</exclude>
  97. <!-- TODO: error about no public construct, seems to run with JUnit 3.8... -->
  98. <exclude>**/TestWordToConverterSuite*.java</exclude>
  99. <exclude>**/TestExcelConverterSuite*.java</exclude>
  100. </excludes>
  101. <!--test>TestPPTX2PNG</test-->
  102. <!--parallel>both</parallel>
  103. <threadCount>10</threadCount-->
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. <dependencies>
  109. <dependency>
  110. <groupId>junit</groupId>
  111. <artifactId>junit</artifactId>
  112. <version>4.12</version>
  113. <scope>test</scope>
  114. </dependency>
  115. </dependencies>
  116. <profiles>
  117. <!-- We need a fair amount of memory to compile the xml schema, -->
  118. <!-- but limit it in case it goes wrong! -->
  119. <!-- Pick the right amount based on 32 vs 64 bit jvm -->
  120. <profile>
  121. <id>32bitstuff</id>
  122. <activation>
  123. <property>
  124. <name>sun.arch.data.model</name>
  125. <value>32</value>
  126. </property>
  127. </activation>
  128. <properties>
  129. <maven.compiler.maxmem>512m</maven.compiler.maxmem>
  130. </properties>
  131. </profile>
  132. <profile>
  133. <id>64bitstuff</id>
  134. <activation>
  135. <property>
  136. <name>sun.arch.data.model</name>
  137. <value>64</value>
  138. </property>
  139. </activation>
  140. <properties>
  141. <maven.compiler.maxmem>768m</maven.compiler.maxmem>
  142. </properties>
  143. </profile>
  144. <profile>
  145. <id>xmlbean</id>
  146. <activation>
  147. <file><exists>xmlbeans.marker</exists></file>
  148. </activation>
  149. <build>
  150. <plugins>
  151. <plugin>
  152. <groupId>org.codehaus.mojo</groupId>
  153. <artifactId>xmlbeans-maven-plugin</artifactId>
  154. <version>2.3.3</version>
  155. <executions>
  156. <execution>
  157. <phase>process-sources</phase>
  158. <goals>
  159. <goal>xmlbeans</goal>
  160. </goals>
  161. <configuration>
  162. <schemaDirectory>${basedir}/target/schemas</schemaDirectory>
  163. <javaSource>1.5</javaSource>
  164. <noJavac>true</noJavac>
  165. <noUpa>${xmlbeans.noUpa}</noUpa>
  166. <noPvr>${xmlbeans.noPvr}</noPvr>
  167. <xmlConfigs>
  168. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionCertificate.xsdconfig</xmlConfig>
  169. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionInfo.xsdconfig</xmlConfig>
  170. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionPassword.xsdconfig</xmlConfig>
  171. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/schemas/ooxmlSchemas.xsdconfig</xmlConfig>
  172. </xmlConfigs>
  173. </configuration>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. <plugin>
  178. <artifactId>maven-antrun-plugin</artifactId>
  179. <version>1.8</version>
  180. <executions>
  181. <execution>
  182. <id>copy-xmltype-and-xsdconfig</id>
  183. <phase>generate-sources</phase>
  184. <goals><goal>run</goal></goals>
  185. <configuration>
  186. <target>
  187. <copy todir="${basedir}/target/generated-sources/xmlbeans">
  188. <fileset dir="${basedir}/../../src/ooxml/java">
  189. <include name="org/apache/poi/POIXMLTypeLoader.java"/>
  190. <include name="org/apache/poi/util/DocumentHelper.java"/>
  191. <include name="org/apache/poi/util/SAXHelper.java"/>
  192. </fileset>
  193. <fileset dir="${basedir}/../../src/java">
  194. <include name="org/apache/poi/util/POILogFactory.java"/>
  195. <include name="org/apache/poi/util/POILogger.java"/>
  196. <include name="org/apache/poi/util/NullLogger.java"/>
  197. <include name="org/apache/poi/util/Internal.java"/>
  198. </fileset>
  199. </copy>
  200. <copy todir="${basedir}/target/schemas">
  201. <fileset dir="${basedir}/../../src/ooxml/resources/org/apache/poi/schemas"/>
  202. </copy>
  203. </target>
  204. </configuration>
  205. </execution>
  206. <execution>
  207. <id>replace-xmltypeloader</id>
  208. <phase>process-sources</phase>
  209. <goals><goal>run</goal></goals>
  210. <configuration>
  211. <target>
  212. <replace dir="${basedir}/target/generated-sources/xmlbeans" includes="**/*.java" excludes="**/impl/**">
  213. <replacetoken>org.apache.xmlbeans.XmlBeans.getContextTypeLoader()</replacetoken>
  214. <replacevalue>org.apache.poi.POIXMLTypeLoader</replacevalue>
  215. </replace>
  216. </target>
  217. </configuration>
  218. </execution>
  219. <execution>
  220. <id>remove-xmltypeloader-from-schema-jar</id>
  221. <phase>prepare-package</phase>
  222. <goals><goal>run</goal></goals>
  223. <configuration>
  224. <target>
  225. <touch file="${basedir}/target/generated-sources/xmlbeans/.staleFlag"/>
  226. <delete dir="${basedir}/target/classes/org/apache"/>
  227. </target>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. </plugins>
  233. </build>
  234. <dependencies>
  235. <dependency>
  236. <groupId>org.apache.xmlbeans</groupId>
  237. <artifactId>xmlbeans</artifactId>
  238. <version>2.6.0</version>
  239. </dependency>
  240. </dependencies>
  241. </profile>
  242. </profiles>
  243. </project>