Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a shaded version of the search library #225

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions old-name-matching-shaded/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>au.org.ala</groupId>
<artifactId>ala-name-matching</artifactId>
<version>4.4-SNAPSHOT</version>
</parent>

<groupId>au.org.ala.names</groupId>
<artifactId>old-name-matching-shaded</artifactId>
<packaging>jar</packaging>

<name>Old Name Matching Library (Shaded)</name>
<description>
For use when making side-by-side comparisons.
A shaded version of the old name matching library, with classes and resources moved.
This ensures that the old library's namespace does not collide with the new library.
</description>

<!-- To get the old name matching libraries -->
<repositories>
<repository>
<id>ala-all</id>
<url>https://nexus.ala.org.au/content/groups/public/</url>
</repository>
<repository>
<id>gbif-all</id>
<url>https://repository.gbif.org/content/groups/gbif</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>au.org.ala</groupId>
<artifactId>ala-name-matching-search</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>au.org.ala</groupId>
<artifactId>ala-name-matching-model</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>au.org.ala:ala-name-matching-search</include>
<include>au.org.ala:ala-name-matching-model</include>
<include>org.gbif:dwc-api</include>
<include>org.gbif:gbif-api</include>
<include>org.gbif:gbif-common</include>
<include>org.gbif:name-parser</include>
<include>uk.ac.shef.wit:simmetrics</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>au.org.ala</pattern>
<shadedPattern>old.au.org.ala</shadedPattern>
</relocation>
<relocation>
<pattern>org.gbif</pattern>
<shadedPattern>old.org.gbif</shadedPattern>
</relocation>
<relocation>
<pattern>uk.ac</pattern>
<shadedPattern>old.uk.ac</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/license/**</exclude>
<exclude>META-INF/*</exclude>
<exclude>META-INF/maven/**</exclude>
<exclude>LICENSE</exclude>
<exclude>NOTICE</exclude>
<exclude>/*.txt</exclude>
<exclude>build.properties</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<module>ala-name-matching-builder</module>
<module>ala-name-matching-tools</module>
<module>ala-name-matching-distribution</module>
<module>old-name-matching-shaded</module>
</modules>

<name>ALA Name Matching (for Lucene 8 or above)</name>
Expand Down