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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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>4.0.0-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://bz.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>UTF-8</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.8</source>
  76. <target>1.8</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>@{argLine} -Duser.language=en -Duser.country=US -Xmx1024m -Djava.io.tmpdir=target/tmp</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. <plugin>
  116. <groupId>org.jacoco</groupId>
  117. <artifactId>jacoco-maven-plugin</artifactId>
  118. <version>0.7.8</version>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. <dependencies>
  123. <dependency>
  124. <groupId>junit</groupId>
  125. <artifactId>junit</artifactId>
  126. <version>${junit.version}</version>
  127. <scope>test</scope>
  128. </dependency>
  129. </dependencies>
  130. <profiles>
  131. <!-- We need a fair amount of memory to compile the xml schema, -->
  132. <!-- but limit it in case it goes wrong! -->
  133. <!-- Pick the right amount based on 32 vs 64 bit jvm -->
  134. <!-- ********************************************************** -->
  135. <!-- If you are using IntelliJ, you might want to check -->
  136. <!-- http://stackoverflow.com/questions/24115142 -->
  137. <!-- ********************************************************** -->
  138. <profile>
  139. <id>32bitstuff</id>
  140. <activation>
  141. <property>
  142. <name>sun.arch.data.model</name>
  143. <value>32</value>
  144. </property>
  145. </activation>
  146. <properties>
  147. <maven.compiler.maxmem>512m</maven.compiler.maxmem>
  148. <argLine>-Xmx768m</argLine>
  149. </properties>
  150. </profile>
  151. <profile>
  152. <id>64bitstuff</id>
  153. <activation>
  154. <property>
  155. <name>sun.arch.data.model</name>
  156. <value>64</value>
  157. </property>
  158. </activation>
  159. <properties>
  160. <maven.compiler.maxmem>768m</maven.compiler.maxmem>
  161. <argLine>-Xmx1024m</argLine>
  162. </properties>
  163. </profile>
  164. <profile>
  165. <id>xmlbean</id>
  166. <activation>
  167. <file><exists>xmlbeans.marker</exists></file>
  168. </activation>
  169. <build>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.codehaus.mojo</groupId>
  173. <artifactId>xmlbeans-maven-plugin</artifactId>
  174. <version>2.3.3</version>
  175. <executions>
  176. <execution>
  177. <phase>process-sources</phase>
  178. <goals>
  179. <goal>xmlbeans</goal>
  180. </goals>
  181. <configuration>
  182. <schemaDirectory>${basedir}/target/schemas</schemaDirectory>
  183. <javaSource>1.5</javaSource>
  184. <noJavac>true</noJavac>
  185. <noUpa>${xmlbeans.noUpa}</noUpa>
  186. <noPvr>${xmlbeans.noPvr}</noPvr>
  187. <xmlConfigs>
  188. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionCertificate.xsdconfig</xmlConfig>
  189. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionInfo.xsdconfig</xmlConfig>
  190. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/poifs/crypt/encryptionPassword.xsdconfig</xmlConfig>
  191. <xmlConfig implementation="java.io.File">${basedir}/../../src/ooxml/resources/org/apache/poi/schemas/ooxmlSchemas.xsdconfig</xmlConfig>
  192. </xmlConfigs>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <artifactId>maven-antrun-plugin</artifactId>
  199. <version>${maven.plugin.antrun.version}</version>
  200. <executions>
  201. <execution>
  202. <id>copy-xmltype-and-xsdconfig</id>
  203. <phase>generate-sources</phase>
  204. <goals><goal>run</goal></goals>
  205. <configuration>
  206. <target>
  207. <copy todir="${basedir}/target/generated-sources/xmlbeans">
  208. <fileset dir="${basedir}/../../src/ooxml/java">
  209. <include name="org/apache/poi/POIXMLTypeLoader.java"/>
  210. <include name="org/apache/poi/util/DocumentHelper.java"/>
  211. <include name="org/apache/poi/util/SAXHelper.java"/>
  212. <include name="org/apache/poi/openxml4j/opc/PackageNamespaces.java"/>
  213. </fileset>
  214. <fileset dir="${basedir}/../../src/java">
  215. <include name="org/apache/poi/util/POILogFactory.java"/>
  216. <include name="org/apache/poi/util/POILogger.java"/>
  217. <include name="org/apache/poi/util/NullLogger.java"/>
  218. <include name="org/apache/poi/util/Internal.java"/>
  219. <include name="org/apache/poi/util/Removal.java"/>
  220. </fileset>
  221. </copy>
  222. <copy todir="${basedir}/target/schemas">
  223. <fileset dir="${basedir}/../../src/ooxml/resources/org/apache/poi/schemas"/>
  224. </copy>
  225. </target>
  226. </configuration>
  227. </execution>
  228. <execution>
  229. <id>replace-xmltypeloader</id>
  230. <phase>process-sources</phase>
  231. <goals><goal>run</goal></goals>
  232. <configuration>
  233. <target>
  234. <replace dir="${basedir}/target/generated-sources/xmlbeans" includes="**/*.java" excludes="**/impl/**">
  235. <replacetoken>org.apache.xmlbeans.XmlBeans.getContextTypeLoader()</replacetoken>
  236. <replacevalue>org.apache.poi.POIXMLTypeLoader</replacevalue>
  237. </replace>
  238. </target>
  239. </configuration>
  240. </execution>
  241. <execution>
  242. <id>remove-xmltypeloader-from-schema-jar</id>
  243. <phase>prepare-package</phase>
  244. <goals><goal>run</goal></goals>
  245. <configuration>
  246. <target>
  247. <touch file="${basedir}/target/generated-sources/xmlbeans/.staleFlag"/>
  248. <delete dir="${basedir}/target/classes/org/apache"/>
  249. </target>
  250. </configuration>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. </plugins>
  255. </build>
  256. <dependencies>
  257. <dependency>
  258. <groupId>org.apache.xmlbeans</groupId>
  259. <artifactId>xmlbeans</artifactId>
  260. <version>${xmlbeans.version}</version>
  261. </dependency>
  262. </dependencies>
  263. </profile>
  264. </profiles>
  265. </project>