Skip to content

Instantly share code, notes, and snippets.

@rajvermacas
Last active August 13, 2024 20:40
Show Gist options
  • Save rajvermacas/d946f6c6ecae5b19a52e4574329bfd5b to your computer and use it in GitHub Desktop.
Save rajvermacas/d946f6c6ecae5b19a52e4574329bfd5b to your computer and use it in GitHub Desktop.
CustomDescriptorMavenAssemblyPlugin.xml
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3
http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>custom</id>
<formats>
<format>jar</format>
</formats>
<dependencySets>
<dependencySet>
<includes>
<include>com.yourcompany:task-framework</include> <!-- Replace with your actual dependency -->
</includes>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.build.outputDirectory}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment