Thanks. I was able to accomplish what I wanted using the assembly-plugin after the install-kar goal. I wanted to note that I did try the resource-plugin but it didn't have the ability to retain executable permissions on the new startup scripts when they were copied into the distribution. The assembly-plugin did. Thanks for pointing me in the right direction.
For anybody trying to do the same thing, here's the way I did it. pom.xml ======== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.mycode.karafrecipes</groupId> <artifactId>karaf-recipes</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>karaf-distro</artifactId> <packaging>pom</packaging> <name>KARAF RECIPES :: DISTRO</name> <description>Karaf Recipes Distribution</description> <properties> <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory> <archive>${project.build.directory}/karaf-distro-1.0.0-SNAPSHOT.tar.gz</archive> </properties> <dependencies> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>framework</artifactId> <type>kar</type> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>standard</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>enterprise</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>spring</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>${project.basedir}/src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <executions> <execution> <id>install-kar</id> <phase>compile</phase> <goals> <goal>install-kars</goal> </goals> </execution> </executions> <configuration> <installedFeatures> <feature>config</feature> <feature>standard</feature> <feature>region</feature> <feature>package</feature> <feature>kar</feature> <feature>ssh</feature> <feature>management</feature> </installedFeatures> <bootFeatures> <feature>webconsole</feature> <feature>war</feature> </bootFeatures> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>bin</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/descriptors/bin.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> src/main/descriptors/bin.xml ===================== <assembly> <id>bin</id> <formats> <format>tar.gz</format> <format>zip</format> </formats> <fileSets> <fileSet> <directory>target/assembly</directory> <outputDirectory>/</outputDirectory> <includes> <include>data/**</include> <include>deploy/**</include> <include>etc/**</include> <include>lib/**</include> <include>system/**</include> </includes> </fileSet> <fileSet> <directory>target/assembly/bin</directory> <outputDirectory>/bin</outputDirectory> <includes> <include>**/*</include> </includes> <lineEnding>unix</lineEnding> <fileMode>0755</fileMode> </fileSet> <fileSet> <directory>src/main/resources/bin</directory> <outputDirectory>/bin</outputDirectory> <includes> <include>**/*</include> </includes> <lineEnding>unix</lineEnding> <fileMode>0755</fileMode> </fileSet> </fileSets> </assembly> -- View this message in context: http://karaf.922171.n3.nabble.com/Custom-distribution-with-custom-startup-script-tp4038689p4038726.html Sent from the Karaf - User mailing list archive at Nabble.com.
