Did you specify the Apache SNAPSHOT repo in your pom ?

<repository>
            <id>apache-snapshots</id>
            <name>Apache Snapshots Repository</name>

<url>http://repository.apache.org/content/groups/snapshots-group</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
</repository>

Regards
JB

On 08/30/2015 12:04 PM, l891211 wrote:
Hello,

I'm trying to make a custom distribution of karaf, which should include
other features, as camel, cxf and other.
My question is how do i specify the custom repositories from where the
features should be installed? I tried to specify the maven repository, but i
get an exception:

  Could not find artifact
org.apache.camel.karaf:apache-camel:xml:features:2.16.0.SNAPSHOT

If i don't specify any repository, i get message when karaf starts that
camel cannot be installed as feature not found.

<plugin>
                 <groupId>org.apache.karaf.tooling</groupId>
                 <artifactId>karaf-maven-plugin</artifactId>
                 <version>4.0.0</version>
                 <extensions>true</extensions>
                 <configuration>

                     <bootRepositories>

<repository>mvn:org.apache.camel.karaf/apache-camel/2.16.0.SNAPSHOT/xml/features</repository>
                     </bootRepositories>
                     <bootFeatures>
                         <feature>jaas</feature>
                         <feature>shell</feature>
                         <feature>ssh</feature>
                         <feature>management</feature>
                         <feature>bundle</feature>
                         <feature>feature</feature>
                         <feature>config</feature>
                         <feature>deployer</feature>
                         <feature>diagnostic</feature>
                         <feature>instance</feature>
                         <feature>kar</feature>
                         <feature>log</feature>
                         <feature>package</feature>
                         <feature>service</feature>
                         <feature>system</feature>
                         <feature>camel</feature>
                     </bootFeatures>
                     <installedFeatures>
                         <feature>wrapper</feature>

                     </installedFeatures>
                 </configuration>
             </plugin>

regards,
Laji




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-0-creatng-custom-distribution-bootRepositories-installedRepositories-tp4042144.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

Reply via email to