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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~ Unless required by applicable law or agreed to in writing,
  13. ~ software distributed under the License is distributed on an
  14. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. ~ KIND, either express or implied. See the License for the
  16. ~ specific language governing permissions and limitations
  17. ~ under the License.
  18. -->
  19. <project xmlns="http://maven.apache.org/POM/4.0.0"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <parent>
  23. <artifactId>oak-jcr</artifactId>
  24. <groupId>org.apache.archiva</groupId>
  25. <version>3.0.0-SNAPSHOT</version>
  26. </parent>
  27. <modelVersion>4.0.0</modelVersion>
  28. <artifactId>oak-jcr-lucene</artifactId>
  29. <name>Archiva Metadata :: Store Provider :: JCR :: Shaded OAK Lucene</name>
  30. <description>This module shades the lucene dependencies of jcr oak to avoid version conflicts</description>
  31. <!--
  32. You may have to update this file, if the JCR OAK dependency version changes in archiva:
  33. - Check, if the lucene classes are still part of the JAR file
  34. - Check the resulting jar file for any unshaded lucene packages
  35. - Check the dependency by mvn dependency:tree for added / removed transitive dependencies
  36. - Check the resulting LICENSE/LICENSE.txt and NOTICE/NOTICE.txt for changes.
  37. -->
  38. <dependencies>
  39. <dependency>
  40. <groupId>org.apache.jackrabbit</groupId>
  41. <artifactId>oak-lucene</artifactId>
  42. <version>${jcr-oak.version}</version>
  43. <!-- Lucene classes are included already in the oak-lucene.jar, so we exclude this dependencies
  44. Not sure, if it is the intention of JCR OAK team to provide some kind of uber jar with oak-lucene,
  45. but that's what it is. We use the classes in the JAR file for shading, not the dependencies.
  46. Must be checked after each version upgrade of OAK JCR -->
  47. <exclusions>
  48. <exclusion>
  49. <groupId>org.apache.lucene</groupId>
  50. <artifactId>lucene-analyzers-common</artifactId>
  51. </exclusion>
  52. <exclusion>
  53. <groupId>org.apache.lucene</groupId>
  54. <artifactId>lucene-core</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>org.apache.lucene</groupId>
  58. <artifactId>lucene-highlighter</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.apache.lucene</groupId>
  62. <artifactId>lucene-memory</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <groupId>org.apache.lucene</groupId>
  66. <artifactId>lucene-queries</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.apache.lucene</groupId>
  70. <artifactId>lucene-queryparser</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.apache.lucene</groupId>
  74. <artifactId>lucene-sandbox</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>org.apache.lucene</groupId>
  78. <artifactId>lucene-suggest</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>org.apache.tika</groupId>
  82. <artifactId>tika-core</artifactId>
  83. </exclusion>
  84. </exclusions>
  85. </dependency>
  86. <!-- We reapply the original transitive dependencies -->
  87. <!-- If you change the version of jcr-oak you may have to check the dependencies -->
  88. <dependency>
  89. <groupId>org.apache.jackrabbit</groupId>
  90. <artifactId>oak-api</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.jackrabbit</groupId>
  94. <artifactId>oak-core-spi</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.jackrabbit</groupId>
  98. <artifactId>oak-store-spi</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.jackrabbit</groupId>
  102. <artifactId>oak-query-spi</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.jackrabbit</groupId>
  106. <artifactId>oak-core</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.jackrabbit</groupId>
  110. <artifactId>oak-store-document</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.jackrabbit</groupId>
  114. <artifactId>oak-search</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.tika</groupId>
  118. <artifactId>tika-core</artifactId>
  119. <version>1.27</version>
  120. </dependency>
  121. </dependencies>
  122. <build>
  123. <pluginManagement>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.rat</groupId>
  127. <artifactId>apache-rat-plugin</artifactId>
  128. <configuration>
  129. <excludes>
  130. <exclude>dependency-reduced-pom.xml</exclude>
  131. <exclude>README.md</exclude>
  132. </excludes>
  133. </configuration>
  134. </plugin>
  135. <!-- We don't have code in this package, only do some repackaging so we skip the LICENSE -->
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-remote-resources-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <goals>
  142. <goal>process</goal>
  143. </goals>
  144. <configuration>
  145. <skip>true</skip>
  146. </configuration>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </pluginManagement>
  152. <plugins>
  153. <!-- download source code in Eclipse, best practice -->
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-eclipse-plugin</artifactId>
  157. <version>2.9</version>
  158. <configuration>
  159. <downloadSources>true</downloadSources>
  160. <downloadJavadocs>false</downloadJavadocs>
  161. </configuration>
  162. </plugin>
  163. <!-- Set a compiler level -->
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-compiler-plugin</artifactId>
  167. <configuration>
  168. <source>${jdk.version}</source>
  169. <target>${jdk.version}</target>
  170. </configuration>
  171. </plugin>
  172. <!-- Maven Shade Plugin -->
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-shade-plugin</artifactId>
  176. <version>3.2.4</version>
  177. <executions>
  178. <!-- Run shade goal on package phase -->
  179. <execution>
  180. <phase>package</phase>
  181. <goals>
  182. <goal>shade</goal>
  183. </goals>
  184. <configuration>
  185. <filters>
  186. <filter>
  187. <artifact>*:*</artifact>
  188. <excludes>
  189. <exclude>META-INF/MANIFEST.MF</exclude>
  190. </excludes>
  191. </filter>
  192. </filters>
  193. <artifactSet>
  194. <excludes>
  195. <exclude>org.apache.jackrabbit:jackrabbit-data</exclude>
  196. <exclude>org.apache.jackrabbit:jackrabbit-jcr-commons</exclude>
  197. <exclude>org.apache.jackrabbit:oak-api</exclude>
  198. <exclude>org.apache.jackrabbit:oak-blob</exclude>
  199. <exclude>org.apache.jackrabbit:oak-blob-plugins</exclude>
  200. <exclude>org.apache.jackrabbit:oak-commons</exclude>
  201. <exclude>org.apache.jackrabbit:oak-core</exclude>
  202. <exclude>org.apache.jackrabbit:oak-core-spi</exclude>
  203. <exclude>org.apache.jackrabbit:oak-jackrabbit-api</exclude>
  204. <exclude>org.apache.jackrabbit:oak-query-spi</exclude>
  205. <exclude>org.apache.jackrabbit:oak-search</exclude>
  206. <exclude>org.apache.jackrabbit:oak-security-spi</exclude>
  207. <exclude>org.apache.jackrabbit:oak-store-document</exclude>
  208. <exclude>org.apache.jackrabbit:oak-store-spi</exclude>
  209. <exclude>org.apache.tika:tika-core</exclude>
  210. <exclude>org.osgi:org.osgi.annotation</exclude>
  211. <exclude>org.osgi:org.osgi.service.component.annotations</exclude>
  212. <exclude>org.osgi:org.osgi.service.metatype.annotations</exclude>
  213. <exclude>org.slf4j:jcl-over-slf4j</exclude>
  214. <exclude>org.slf4j:slf4j-api</exclude>
  215. <exclude>commons-codec:commons-codec</exclude>
  216. <exclude>commons-io:commons-io</exclude>
  217. <exclude>com.google.guava:guava</exclude>
  218. <exclude>javax.jcr:jcr</exclude>
  219. </excludes>
  220. </artifactSet>
  221. <relocations>
  222. <relocation>
  223. <pattern>org.apache.lucene</pattern>
  224. <shadedPattern>shaded_oak.org.apache.lucene</shadedPattern>
  225. </relocation>
  226. <relocation>
  227. <pattern>org.tartarus.snowball</pattern>
  228. <shadedPattern>shaded_oak.org.tartarus.snowball</shadedPattern>
  229. </relocation>
  230. </relocations>
  231. <transformers>
  232. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  233. <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
  234. <addHeader>false</addHeader>
  235. </transformer>
  236. </transformers>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </project>