123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
- <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/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>oak-jcr</artifactId>
- <groupId>org.apache.archiva</groupId>
- <version>3.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>oak-jcr-lucene</artifactId>
- <name>Archiva Metadata :: Store Provider :: JCR :: Shaded OAK Lucene</name>
- <description>This module shades the lucene dependencies of jcr oak to avoid version conflicts</description>
-
- <!--
- You may have to update this file, if the JCR OAK dependency version changes in archiva:
- - Check, if the lucene classes are still part of the JAR file
- - Check the resulting jar file for any unshaded lucene packages
- - Check the dependency by mvn dependency:tree for added / removed transitive dependencies
- - Check the resulting LICENSE/LICENSE.txt and NOTICE/NOTICE.txt for changes.
- -->
-
- <dependencies>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-lucene</artifactId>
- <version>${jcr-oak.version}</version>
- <!-- Lucene classes are included already in the oak-lucene.jar, so we exclude this dependencies
- Not sure, if it is the intention of JCR OAK team to provide some kind of uber jar with oak-lucene,
- but that's what it is. We use the classes in the JAR file for shading, not the dependencies.
- Must be checked after each version upgrade of OAK JCR -->
- <exclusions>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-analyzers-common</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-highlighter</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-memory</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-queries</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-queryparser</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-sandbox</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.lucene</groupId>
- <artifactId>lucene-suggest</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.tika</groupId>
- <artifactId>tika-core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- We reapply the original transitive dependencies -->
- <!-- If you change the version of jcr-oak you may have to check the dependencies -->
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-core-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-store-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-query-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-store-document</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>oak-search</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.tika</groupId>
- <artifactId>tika-core</artifactId>
- <version>1.27</version>
- </dependency>
- </dependencies>
-
-
- <build>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.rat</groupId>
- <artifactId>apache-rat-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>dependency-reduced-pom.xml</exclude>
- <exclude>README.md</exclude>
- </excludes>
- </configuration>
- </plugin>
-
- <!-- We don't have code in this package, only do some repackaging so we skip the LICENSE -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-remote-resources-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>process</goal>
- </goals>
- <configuration>
- <skip>true</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
-
- </pluginManagement>
-
- <plugins>
-
- <!-- download source code in Eclipse, best practice -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.9</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>false</downloadJavadocs>
- </configuration>
- </plugin>
-
- <!-- Set a compiler level -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${jdk.version}</source>
- <target>${jdk.version}</target>
- </configuration>
- </plugin>
-
- <!-- Maven Shade Plugin -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.4</version>
- <executions>
- <!-- Run shade goal on package phase -->
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/MANIFEST.MF</exclude>
- </excludes>
- </filter>
- </filters>
- <artifactSet>
- <excludes>
- <exclude>org.apache.jackrabbit:jackrabbit-data</exclude>
- <exclude>org.apache.jackrabbit:jackrabbit-jcr-commons</exclude>
- <exclude>org.apache.jackrabbit:oak-api</exclude>
- <exclude>org.apache.jackrabbit:oak-blob</exclude>
- <exclude>org.apache.jackrabbit:oak-blob-plugins</exclude>
- <exclude>org.apache.jackrabbit:oak-commons</exclude>
- <exclude>org.apache.jackrabbit:oak-core</exclude>
- <exclude>org.apache.jackrabbit:oak-core-spi</exclude>
- <exclude>org.apache.jackrabbit:oak-jackrabbit-api</exclude>
- <exclude>org.apache.jackrabbit:oak-query-spi</exclude>
- <exclude>org.apache.jackrabbit:oak-search</exclude>
- <exclude>org.apache.jackrabbit:oak-security-spi</exclude>
- <exclude>org.apache.jackrabbit:oak-store-document</exclude>
- <exclude>org.apache.jackrabbit:oak-store-spi</exclude>
- <exclude>org.apache.tika:tika-core</exclude>
- <exclude>org.osgi:org.osgi.annotation</exclude>
- <exclude>org.osgi:org.osgi.service.component.annotations</exclude>
- <exclude>org.osgi:org.osgi.service.metatype.annotations</exclude>
- <exclude>org.slf4j:jcl-over-slf4j</exclude>
- <exclude>org.slf4j:slf4j-api</exclude>
- <exclude>commons-codec:commons-codec</exclude>
- <exclude>commons-io:commons-io</exclude>
- <exclude>com.google.guava:guava</exclude>
- <exclude>javax.jcr:jcr</exclude>
- </excludes>
- </artifactSet>
- <relocations>
- <relocation>
- <pattern>org.apache.lucene</pattern>
- <shadedPattern>shaded_oak.org.apache.lucene</shadedPattern>
- </relocation>
- <relocation>
- <pattern>org.tartarus.snowball</pattern>
- <shadedPattern>shaded_oak.org.tartarus.snowball</shadedPattern>
- </relocation>
- </relocations>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
- <addHeader>false</addHeader>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-
- </project>
|