Skip to content

Instantly share code, notes, and snippets.

@hotzen
Last active August 22, 2022 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotzen/2da60295a410589078086b7f06af3fee to your computer and use it in GitHub Desktop.
Save hotzen/2da60295a410589078086b7f06af3fee to your computer and use it in GitHub Desktop.
include pre-supplied jar files in maven-assembly-plugin - to be used in conjunction with https://gist.github.com/hotzen/d4667f4a7109f03b008d73e60f8e41d9
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>jar-with-system-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<scope>system</scope>
</dependencySet>
</dependencySets>
</assembly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment