diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-01-10 17:35:00 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-01-11 16:50:51 +0100 |
commit | 43a5ab35b4dfd0f4c5dd2bdbbc241345938d3142 (patch) | |
tree | b6e8244e36b6cd9621b925ff946a6fe64de749c3 /vespaclient-java/pom.xml | |
parent | c6191deb7c5fd1501c1d07b3cae0c8e8b9486434 (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 'vespaclient-java/pom.xml')
-rw-r--r-- | vespaclient-java/pom.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vespaclient-java/pom.xml b/vespaclient-java/pom.xml index 99ca84ccce0..a31d3c834dd 100644 --- a/vespaclient-java/pom.xml +++ b/vespaclient-java/pom.xml @@ -11,6 +11,7 @@ </parent> <artifactId>vespaclient-java</artifactId> <version>8-SNAPSHOT</version> + <packaging>jar</packaging> <dependencies> <dependency> <!-- Due to com.yahoo.search.query.profile.DumpTool ... --> @@ -94,17 +95,16 @@ </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <configuration> - <finalName>${project.artifactId}-jar-with-dependencies</finalName> - <createDependencyReducedPom>false</createDependencyReducedPom> - </configuration> + <artifactId>maven-install-plugin</artifactId> + <configuration><skip>true</skip></configuration> + </plugin> + <plugin> + <groupId>com.yahoo.vespa</groupId> + <artifactId>bundle-plugin</artifactId> <executions> <execution> <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> + <goals><goal>assemble-fat-jar</goal></goals> </execution> </executions> </plugin> |