summaryrefslogtreecommitdiffstats
path: root/filedistribution
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2023-01-26 00:50:51 +0100
committerGitHub <noreply@github.com>2023-01-26 00:50:51 +0100
commit11002ce7a74103b5180a7ef7befb5d1fa09ebe83 (patch)
tree841168ac6c3ad0856d6dc9224220f8a135030168 /filedistribution
parent8096d5ec0490ae7da7d3208c84546d2798781e52 (diff)
Revert "Revert "Revert "Bjorncs/bundle cleanup [run-systemtest]"""
Diffstat (limited to 'filedistribution')
-rw-r--r--filedistribution/CMakeLists.txt1
-rw-r--r--filedistribution/pom.xml23
2 files changed, 23 insertions, 1 deletions
diff --git a/filedistribution/CMakeLists.txt b/filedistribution/CMakeLists.txt
index 05c9ec571fb..73c581c0b7f 100644
--- a/filedistribution/CMakeLists.txt
+++ b/filedistribution/CMakeLists.txt
@@ -1 +1,2 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+install_jar(filedistribution-jar-with-dependencies.jar)
diff --git a/filedistribution/pom.xml b/filedistribution/pom.xml
index a2dd5081c48..6485919b14b 100644
--- a/filedistribution/pom.xml
+++ b/filedistribution/pom.xml
@@ -14,7 +14,7 @@
<artifactId>filedistribution</artifactId>
<version>8-SNAPSHOT</version>
- <packaging>jar</packaging>
+ <packaging>container-plugin</packaging>
<name>${project.artifactId}</name>
<dependencies>
@@ -56,9 +56,30 @@
<build>
<plugins>
<plugin>
+ <groupId>com.yahoo.vespa</groupId>
+ <artifactId>bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</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>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>