summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2017-09-13 16:32:48 +0200
committergjoranv <gv@oath.com>2017-09-14 15:09:20 +0200
commit4bcd94748034201f647301c456aa1dfecddb9659 (patch)
tree318879736524db4d7c711363c621d87ea70c1b63 /vespajlib
parent5ca40d533eabdb8fad2d0951285182b998aaf9df (diff)
Install net.jpountz.lz4:lz4 as a bundle.
- From vespajlib. - It must still be a compile scope dep in order to make it a transitive dep for dependents of vespajlib. (Important to allow using vespajlib as a library outside the jdisc container.) - Hence, lz4 is still on the bundle classpath, but the explicitly added Import-Package overrides the bundle classpath.
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/pom.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/vespajlib/pom.xml b/vespajlib/pom.xml
index 27e8d4020ae..e19fd668e49 100644
--- a/vespajlib/pom.xml
+++ b/vespajlib/pom.xml
@@ -77,6 +77,14 @@
<groupId>com.yahoo.vespa</groupId>
<artifactId>bundle-plugin</artifactId>
<extensions>true</extensions>
+ <configuration>
+ <Import-Package>
+ net.jpountz.lz4;version=${lz4.version}
+ </Import-Package>
+ <discPreInstallBundle>
+ lz4-${lz4.version}.jar
+ </discPreInstallBundle>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -99,6 +107,25 @@
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</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>
+ <includeGroupIds>net.jpountz.lz4</includeGroupIds>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>false</overWriteSnapshots>
+ <excludeTransitive>true</excludeTransitive>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>