Hi,
I am new to karaf and am trying to build a standalone karaf distribution,
i.e. which does not require maven on startup. I am following the steps in
http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
<http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html>
and using the org.apache.karaf.tooling:karaf-maven-plugin.
What I am trying to achieve is to have a distribution which does not contain
the some of the default features (ex: spring), has some pre-installed
features, and also some of my custom features (netty) bundled in a single
distribution.
My plugin configuration looks like:
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<configuration>
<addBundlesToPrimaryFeature>true</addBundlesToPrimaryFeature>
<aggregateFeatures>true</aggregateFeatures
<featuresCfgFile>${basedir}/src/main/resources/org.apache.karaf.features.cfg</featuresCfgFile>
<bootFeatures>
<feature>framework</feature>
<feature>management</feature>
<feature>jdbc</feature>
<feature>netty</feature>
</bootFeatures>
<featuresFile>${basedir}/src/main/resources/feature.xml</featuresFile>
</configuration>
</plugin>
</plugins>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.version}</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
<version>${karaf.version}</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.8.0.v20120529-1548</version>
</dependency>
</dependencies>
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-Standalone-Distribution-tp4034233.html
Sent from the Karaf - User mailing list archive at Nabble.com.