You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nibblenabbler <pa...@gmail.com> on 2014/07/09 16:43:54 UTC

karaf-maven-plugin (karaf-assembly) custom distribution startup script permissions

I'm trying to create a custom Karaf distribution (3.0.1).  I want to include
a custom startup script file called my_karaf (in addition to the normal
"karaf" one).  It seems to work well since I see my startup up script
"my_karaf" inside the bin directory of my tar.gz distribution (I'm on
Ubuntu).  However, the file does not have executable permission.  How do I
accomplish this?  Thanks in advance.

My maven pom looks like:

<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.examplecode.my</groupId>
        <artifactId>myparent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <groupId>com.examplecode.my</groupId>
    <artifactId>my-distro</artifactId>
    <packaging>karaf-assembly</packaging>
    <name>my :: DISTRIBUTION</name>

    <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>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    
                    <bootFeatures>
                        <feature>standard</feature>
                        <feature>management</feature>
                    </bootFeatures>
                    
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

My maven project directory structure looks like:

src
└── main
    └── resources
        └── bin
            └── my_karaf
      



--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-maven-plugin-karaf-assembly-custom-distribution-startup-script-permissions-tp4034092.html
Sent from the Karaf - User mailing list archive at Nabble.com.