Skip to content

Instantly share code, notes, and snippets.

@splatch
Created April 12, 2011 09:03
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 splatch/915214 to your computer and use it in GitHub Desktop.
Save splatch/915214 to your computer and use it in GitHub Desktop.
New assembly packaging of Karaf
<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2
http://maven.apache.org/xsd/component-1.1.2.xsd
">
<fileSets>
<!-- Copy over everything that needs to get unix line endings -->
<fileSet>
<directory>src/main/distribution/text</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
<directory>target/classes/etc</directory>
<outputDirectory>/etc/</outputDirectory>
</fileSet>
<fileSet>
<directory>target/features-repo</directory>
<outputDirectory>system</outputDirectory>
</fileSet>
</fileSets>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd'>
<id>unix</id>
<!-- Used as artifact discriminator -->
<formats>
<format>tar.gz</format>
</formats>
<componentDescriptors>
<componentDescriptor>src/main/descriptors/main.xml</componentDescriptor>
</componentDescriptors>
<fileSets>
<fileSet>
<directory>src/main/distribution/unix-shell</directory>
<outputDirectory>/</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
</fileSets>
</assembly>
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>windows</id>
<formats>
<format>zip</format>
</formats>
<componentDescriptors>
<componentDescriptor>src/main/descriptors/main.xml</componentDescriptor>
</componentDescriptors>
<fileSets>
<fileSet>
<directory>src/main/distribution/windows-shell</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment