summaryrefslogtreecommitdiffstats
path: root/zookeeper-command-line-client
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 /zookeeper-command-line-client
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 'zookeeper-command-line-client')
-rw-r--r--zookeeper-command-line-client/pom.xml35
1 files changed, 15 insertions, 20 deletions
diff --git a/zookeeper-command-line-client/pom.xml b/zookeeper-command-line-client/pom.xml
index ae3f5b3bfa1..7bbbf33a62f 100644
--- a/zookeeper-command-line-client/pom.xml
+++ b/zookeeper-command-line-client/pom.xml
@@ -63,27 +63,22 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
+ <groupId>org.apache.maven.plugins</groupId>
+ <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>assemble-fat-jar</goal></goals>
+ </execution>
+ </executions>
<configuration>
- <archive>
- <manifest>
- <mainClass>com.yahoo.vespa.zookeeper.cli.Main</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <!-- append to the packaging phase. -->
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
+ <mainClass>com.yahoo.vespa.zookeeper.cli.Main</mainClass>
+ </configuration>
</plugin>
</plugins>
</build>