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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <groupId>org.apache.poi</groupId>
  22. <artifactId>poi-bundle</artifactId>
  23. <packaging>bundle</packaging>
  24. <version>5.0.0-SNAPSHOT</version>
  25. <name>Apache POI OSGi bundle</name>
  26. <properties>
  27. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  28. <poi.version>5.0.0-SNAPSHOT</poi.version>
  29. <pax.exam.version>4.12.0</pax.exam.version>
  30. </properties>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <artifactId>maven-compiler-plugin</artifactId>
  35. <version>3.8.0</version>
  36. <configuration>
  37. <source>1.8</source>
  38. <target>1.8</target>
  39. </configuration>
  40. </plugin>
  41. <plugin>
  42. <groupId>org.apache.felix</groupId>
  43. <artifactId>maven-bundle-plugin</artifactId>
  44. <version>4.2.1</version>
  45. <extensions>true</extensions>
  46. <configuration>
  47. <instructions>
  48. <Bundle-Activator>
  49. org.apache.poi.osgi.Activator
  50. </Bundle-Activator>
  51. <Export-Package>
  52. org.apache.poi.*,
  53. org.openxmlformats.schemas.*,
  54. com.microsoft.schemas.*,
  55. org.w3.x2000.x09.xmldsig.*,
  56. org.etsi.uri.x01903.v13.*,
  57. org.apache.xmlbeans.*,
  58. org.apache.commons.compress.*,
  59. com.zaxxer.sparsebits.*,
  60. com.graphbuilder.*
  61. </Export-Package>
  62. <Import-Package>
  63. !org.apache.poi.*,
  64. !org.openxmlformats.schemas.*,
  65. !com.microsoft.schemas.*,
  66. !org.w3.x2000.x09.xmldsig.*,
  67. !org.etsi.uri.x01903.*,
  68. !org.apache.xmlbeans.*,
  69. !org.apache.commons.compress.*,
  70. !com.zaxxer.sparsebits.*,
  71. !com.graphbuilder.*,
  72. org.apache.batik.*;resolution:=optional,
  73. net.sf.saxon.*;resolution:=optional,
  74. !com.github.javaparser.*,
  75. !org.apache.tools.ant.*,
  76. !sun.misc.*,
  77. org.apache.jcp.xml.dsig.internal.dom;resolution:=optional,
  78. org.apache.xml.resolver.*;resolution:=optional,
  79. org.apache.xml.security.*;resolution:=optional,
  80. org.bouncycastle.*;resolution:=optional,
  81. org.apache.commons.logging.*;resolution:=optional,
  82. !com.github.luben.zstd.*,
  83. !org.tukaani.xz.*,
  84. !org.brotli.dec.*,
  85. *
  86. </Import-Package>
  87. <Embed-Dependency>
  88. poi;inline=true,
  89. poi-scratchpad;inline=true,
  90. poi-ooxml;inline=true,
  91. poi-ooxml-schemas;inline=true,
  92. xmlbeans;inline=true,
  93. SparseBitSet,
  94. curvesapi,
  95. commons-math3,
  96. commons-compress,
  97. commons-collections4,
  98. commons-codec
  99. </Embed-Dependency>
  100. <Embed-Directory>lib</Embed-Directory>
  101. <Embed-Transitive>true</Embed-Transitive>
  102. </instructions>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-failsafe-plugin</artifactId>
  107. <version>2.22.1</version>
  108. <executions>
  109. <execution>
  110. <goals>
  111. <goal>integration-test</goal>
  112. <goal>verify</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. <configuration>
  117. <systemProperties>
  118. <property>
  119. <name>bundle.filename</name>
  120. <value>${basedir}/target/${project.build.finalName}.jar</value>
  121. </property>
  122. </systemProperties>
  123. </configuration>
  124. </plugin>
  125. </plugins>
  126. </build>
  127. <dependencies>
  128. <dependency>
  129. <groupId>org.apache.poi</groupId>
  130. <artifactId>poi</artifactId>
  131. <version>${poi.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.poi</groupId>
  135. <artifactId>poi-ooxml</artifactId>
  136. <version>${poi.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.poi</groupId>
  140. <artifactId>poi-scratchpad</artifactId>
  141. <version>${poi.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.apache.poi</groupId>
  145. <artifactId>poi-ooxml-schemas</artifactId>
  146. <version>${poi.version}</version>
  147. </dependency>
  148. <!-- Pax Exam Testing -->
  149. <!-- an OSGi framework -->
  150. <dependency>
  151. <groupId>org.osgi</groupId>
  152. <artifactId>org.osgi.core</artifactId>
  153. <version>4.3.1</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.felix</groupId>
  157. <artifactId>org.apache.felix.framework</artifactId>
  158. <version>6.0.3</version>
  159. <scope>test</scope>
  160. </dependency>
  161. <!-- JUnit -->
  162. <dependency>
  163. <groupId>junit</groupId>
  164. <artifactId>junit</artifactId>
  165. <scope>test</scope>
  166. <version>4.12</version>
  167. </dependency>
  168. <!-- Pax Exam -->
  169. <dependency>
  170. <groupId>org.ops4j.pax.exam</groupId>
  171. <artifactId>pax-exam</artifactId>
  172. <version>${pax.exam.version}</version>
  173. <scope>test</scope>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.ops4j.pax.exam</groupId>
  177. <artifactId>pax-exam-junit4</artifactId>
  178. <version>${pax.exam.version}</version>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.ops4j.pax.exam</groupId>
  183. <artifactId>pax-exam-cm</artifactId>
  184. <version>${pax.exam.version}</version>
  185. <scope>test</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.ops4j.pax.exam</groupId>
  189. <artifactId>pax-exam-container-forked</artifactId>
  190. <version>${pax.exam.version}</version>
  191. <scope>test</scope>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.ops4j.pax.url</groupId>
  195. <artifactId>pax-url-link</artifactId>
  196. <scope>test</scope>
  197. <version>2.5.2</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.ops4j.pax.url</groupId>
  201. <artifactId>pax-url-classpath</artifactId>
  202. <scope>test</scope>
  203. <version>2.5.2</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.ops4j.pax.exam</groupId>
  207. <artifactId>pax-exam-link-assembly</artifactId>
  208. <version>${pax.exam.version}</version>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>javax.inject</groupId>
  213. <artifactId>javax.inject</artifactId>
  214. <version>1</version>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.slf4j</groupId>
  219. <artifactId>slf4j-simple</artifactId>
  220. <version>1.7.25</version>
  221. <scope>test</scope>
  222. </dependency>
  223. </dependencies>
  224. </project>