summaryrefslogtreecommitdiffstats
path: root/vespa-3party-jars
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2023-01-10 17:35:00 +0100
committerBjørn Christian Seime <bjorncs@yahooinc.com>2023-01-11 16:50:51 +0100
commit43a5ab35b4dfd0f4c5dd2bdbbc241345938d3142 (patch)
treeb6e8244e36b6cd9621b925ff946a6fe64de749c3 /vespa-3party-jars
parentc6191deb7c5fd1501c1d07b3cae0c8e8b9486434 (diff)
Don't embed JARs installed in lib/jars
Define installed JARs in vespa-3party-jars. Add bundle-plugin goal wrapping maven-shade-plugin's DefaultShader that excludes installed JARs and lists them in manifest's Class-Path instead.
Diffstat (limited to 'vespa-3party-jars')
-rw-r--r--vespa-3party-jars/CMakeLists.txt2
-rw-r--r--vespa-3party-jars/OWNERS1
-rw-r--r--vespa-3party-jars/README1
-rw-r--r--vespa-3party-jars/pom.xml61
4 files changed, 65 insertions, 0 deletions
diff --git a/vespa-3party-jars/CMakeLists.txt b/vespa-3party-jars/CMakeLists.txt
new file mode 100644
index 00000000000..436d9aec39a
--- /dev/null
+++ b/vespa-3party-jars/CMakeLists.txt
@@ -0,0 +1,2 @@
+# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+install_jar_dependencies(vespa-3party-jars)
diff --git a/vespa-3party-jars/OWNERS b/vespa-3party-jars/OWNERS
new file mode 100644
index 00000000000..569bf1cc3a1
--- /dev/null
+++ b/vespa-3party-jars/OWNERS
@@ -0,0 +1 @@
+bjorncs
diff --git a/vespa-3party-jars/README b/vespa-3party-jars/README
new file mode 100644
index 00000000000..e24bd86e20e
--- /dev/null
+++ b/vespa-3party-jars/README
@@ -0,0 +1 @@
+3rd party Java libraries that are installed to VESPA_HOME/lib/jars/
diff --git a/vespa-3party-jars/pom.xml b/vespa-3party-jars/pom.xml
new file mode 100644
index 00000000000..4c269e723b6
--- /dev/null
+++ b/vespa-3party-jars/pom.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
+<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>com.yahoo.vespa</groupId>
+ <artifactId>parent</artifactId>
+ <version>8-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+ <artifactId>vespa-3party-jars</artifactId>
+ <version>8-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <description>
+ List 3rd party Java libraries that should be installed to lib/jars.
+ These libraries are not embedded in fat jars produced by bundle-plugin's 'assemble-fat-jar' goal.
+ </description>
+ <dependencies>
+ <dependency>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>vespa-3party-bundles</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk18on</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <!-- Explicit for IntelliJ to detect correct language level from parent -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>false</overWriteSnapshots>
+ <excludeTransitive>false</excludeTransitive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>