mirror of https://github.com/apache/archiva.git
258 lines
9.8 KiB
XML
258 lines
9.8 KiB
XML
<?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> |