Hi,
Karaf doesn't need Maven (at startup or later), if you talk about the
Maven binaries. 3.0.1 requires an Internet connection, but it will be
fixed with 3.0.2.
Anyway, in your case, you should use the install-kars and
instance-create-archive goals. It's the way that we create the Karaf
distribution.
You can take a look on the default Karaf distribution:
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob_plain;f=assemblies/apache-karaf/pom.xml;hb=refs/heads/karaf-3.0.x
Regards
JB
On 07/16/2014 10:38 AM, anshuman.osc wrote:
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.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com