FAQ: Unable to add feature

One Star

FAQ: Unable to add feature

Q: When trying to install feature like
features:addurl mvnSmiley Surprisedrg.talend.esb.examples.rent-a-car/features-sam/4.0/xml
got exception:
Could not add Feature Repository:
java.lang.RuntimeException: URL could not be resolved.
A: Karaf can't resolve local maven repo.
Regarding \container\etc\org.ops4j.pax.url.mvn.cfg:
# The following locations are checked for the existence of the settings.xml file
# * 1. looks for the specified url
# * 2. if not found looks for ${user.home}/.m2/settings.xml
# * 3. if not found looks for ${maven.home}/conf/settings.xml
# * 4. if not found looks for ${M2_HOME}/conf/settings.xml
Check config location for karaf regarding listed criteria.
One Star

Re: FAQ: Unable to add feature

I also faced the same problem but after changing the correct version of Taled it works. For me the command was:
features:addurl mvnSmiley Surprisedrg.talend.esb.examples.rent-a-car/features/5.0.1/xml
One Star

Re: FAQ: Unable to add feature

aLeXx,
seems like maven is unable to locate your local maven repository. This could happen if you never used Maven on this computer before. Did you compile the rent-a-car demo? If not please check out Chapter 5 in the Talend ESB Getting Started Guide, you'll find a complete description how to set up the demo there.
Arabinda also makes a valid point. If you are using the most recent version of Talend (which I really recommend), you need to update the version in the feature url. The updated URLs are given in the guide as well, just copy & paste them from there.
Best regards
Jerry