fixup! Use maven-shade-plugin to assemble fat jar
</executions>
</plugin>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <finalName>${project.artifactId}</finalName>
- <appendAssemblyId>true</appendAssemblyId>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
<configuration>
- <archive>
+ <finalName>${project.artifactId}-jar-with-dependencies</finalName>
+ <filters>
+ <filter>
+ <!-- Don't include signature files from bouncycastle in uber jar. -->
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
- <Export-Package>
- com.yahoo.messagebus,
- com.yahoo.messagebus.jdisc,
- com.yahoo.messagebus.metrics,
- com.yahoo.messagebus.network,
- com.yahoo.messagebus.network.rpc,
- com.yahoo.messagebus.routing,
- com.yahoo.messagebus.shared,
- com.yahoo.messagebus.test
- </Export-Package>
+ <Export-Package>com.yahoo.messagebus,com.yahoo.messagebus.jdisc,com.yahoo.messagebus.metrics,com.yahoo.messagebus.network,
+ com.yahoo.messagebus.network.rpc,com.yahoo.messagebus.routing,com.yahoo.messagebus.shared,com.yahoo.messagebus.test</Export-Package>
<Import-Package>
com.google.inject;version="1.3",
com.yahoo.jdisc,
org.xml.sax.helpers
</Import-Package>
</manifestEntries>
- </archive>
+ </transformer>
+ </transformers>
</configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
<goals>
- <goal>single</goal>
+ <goal>shade</goal>
</goals>
</execution>
</executions>
