您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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.2.1</version>
  25. <name>Apache POI OSGi bundle</name>
  26. <properties>
  27. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  28. <poi.version>5.2.1</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.logging.log4j.*,
  73. org.apache.batik.*;resolution:=optional,
  74. org.apache.pdfbox.*;resolution:=optional,
  75. org.apache.fontbox.*;resolution:=optional,
  76. de.rototor.pdfbox.graphics2d.*;resolution:=optional,
  77. net.sf.saxon.*;resolution:=optional,
  78. !com.github.javaparser.*,
  79. !org.apache.tools.ant.*,
  80. !sun.misc.*,
  81. org.apache.jcp.xml.dsig.internal.dom;resolution:=optional,
  82. org.apache.xml.resolver.*;resolution:=optional,
  83. org.apache.xml.security.*;resolution:=optional,
  84. org.bouncycastle.*;resolution:=optional,
  85. !com.github.luben.zstd.*,
  86. !org.tukaani.xz.*,
  87. !org.brotli.dec.*,
  88. *
  89. </Import-Package>
  90. <Embed-Dependency>
  91. poi;inline=true,
  92. poi-scratchpad;inline=true,
  93. poi-ooxml;inline=true,
  94. poi-ooxml-lite;inline=true,
  95. xmlbeans;inline=true,
  96. SparseBitSet,
  97. curvesapi,
  98. commons-math3,
  99. commons-io,
  100. commons-compress,
  101. commons-collections4,
  102. commons-codec,
  103. log4j-api
  104. </Embed-Dependency>
  105. <Embed-Directory>lib</Embed-Directory>
  106. <Embed-Transitive>true</Embed-Transitive>
  107. </instructions>
  108. </configuration>
  109. </plugin>
  110. <plugin>
  111. <artifactId>maven-failsafe-plugin</artifactId>
  112. <version>2.22.1</version>
  113. <executions>
  114. <execution>
  115. <goals>
  116. <goal>integration-test</goal>
  117. <goal>verify</goal>
  118. </goals>
  119. </execution>
  120. </executions>
  121. <configuration>
  122. <systemProperties>
  123. <property>
  124. <name>bundle.filename</name>
  125. <value>${basedir}/target/${project.build.finalName}.jar</value>
  126. </property>
  127. </systemProperties>
  128. </configuration>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. <dependencies>
  133. <dependency>
  134. <groupId>org.apache.poi</groupId>
  135. <artifactId>poi</artifactId>
  136. <version>${poi.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.poi</groupId>
  140. <artifactId>poi-ooxml</artifactId>
  141. <version>${poi.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.apache.poi</groupId>
  145. <artifactId>poi-scratchpad</artifactId>
  146. <version>${poi.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.poi</groupId>
  150. <artifactId>poi-ooxml-lite</artifactId>
  151. <version>${poi.version}</version>
  152. </dependency>
  153. <!-- Pax Exam Testing -->
  154. <!-- an OSGi framework -->
  155. <dependency>
  156. <groupId>org.osgi</groupId>
  157. <artifactId>org.osgi.core</artifactId>
  158. <version>4.3.1</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.apache.felix</groupId>
  162. <artifactId>org.apache.felix.framework</artifactId>
  163. <version>6.0.3</version>
  164. <scope>test</scope>
  165. </dependency>
  166. <!-- JUnit -->
  167. <dependency>
  168. <groupId>junit</groupId>
  169. <artifactId>junit</artifactId>
  170. <scope>test</scope>
  171. <version>4.13.1</version>
  172. </dependency>
  173. <!-- Pax Exam -->
  174. <dependency>
  175. <groupId>org.ops4j.pax.exam</groupId>
  176. <artifactId>pax-exam</artifactId>
  177. <version>${pax.exam.version}</version>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.ops4j.pax.exam</groupId>
  182. <artifactId>pax-exam-junit4</artifactId>
  183. <version>${pax.exam.version}</version>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.ops4j.pax.exam</groupId>
  188. <artifactId>pax-exam-cm</artifactId>
  189. <version>${pax.exam.version}</version>
  190. <scope>test</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.ops4j.pax.exam</groupId>
  194. <artifactId>pax-exam-container-forked</artifactId>
  195. <version>${pax.exam.version}</version>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.ops4j.pax.url</groupId>
  200. <artifactId>pax-url-link</artifactId>
  201. <scope>test</scope>
  202. <version>2.5.2</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.ops4j.pax.url</groupId>
  206. <artifactId>pax-url-classpath</artifactId>
  207. <scope>test</scope>
  208. <version>2.5.2</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.ops4j.pax.exam</groupId>
  212. <artifactId>pax-exam-link-assembly</artifactId>
  213. <version>${pax.exam.version}</version>
  214. <scope>test</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>javax.inject</groupId>
  218. <artifactId>javax.inject</artifactId>
  219. <version>1</version>
  220. <scope>test</scope>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.apache.logging.log4j</groupId>
  224. <artifactId>log4j-core</artifactId>
  225. <version>2.17.1</version>
  226. <scope>test</scope>
  227. </dependency>
  228. </dependencies>
  229. </project>