Hi,

No, it's not an issue.
org.ops4j.pax.url.mvn.settings is from OPS4J PAX-URL and settings.xml is from 
Apache Maven, totally different projects and Apache Maven have no idea what's 
configuration from pax-url is.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2012-12-27, at 下午1:42, Tang Yong wrote:

> Thanks freeman very much! And once I set M2_HOME, karaf works normally!
> 
> karaf@root()> feature:repo-add camel 2.10.0
> Adding feature url
> mvn:org.apache.camel.karaf/apache-camel/2.10.0/xml/features
> karaf@root()> feature:install camel-spring
> karaf@root()> list
> START LEVEL 100 , List Threshold: 50
>   ID   State         Level Name
> [  96] [    Active] [   50] camel-core (2.10.0)
> [  97] [    Active] [   50] camel-karaf-commands (2.10.0)
> [  98] [    Active] [   50] geronimo-jta_1.1_spec (1.1.1)
> [  99] [    Active] [   50] camel-spring (2.10.0)
> karaf@root()> install -s mvn:org.apache.camel/camel-example-osgi/2.10.1
> Bundle ID: 100
> karaf@root()> >>>> SpringDSL set body:  Thu Dec 27 14:38:23 JST 2012
>>>>> SpringDSL set body:  Thu Dec 27 14:38:25 JST 2012
>>>>> SpringDSL set body:  Thu Dec 27 14:38:27 JST 2012
>>>>> SpringDSL set body:  Thu Dec 27 14:38:29 JST 2012
>>>>> SpringDSL set body:  Thu Dec 27 14:38:31 JST 2012
> 
> Only question: if I set org.ops4j.pax.url.mvn.settings of
> etc\org.ops4j.pax.url.mvn.cfg file into my maven setting file explictly,
> this has not any effect, whether this is a issue or not?
> 
> Thanks
> --Tang
> 
> Freeman Fang wrote:
>> Hi,
>> 
>> It's settings.xml, could be in ~/.m2/ 
>> or
>> ${maven.home}/conf/settings.xml
>> ${M2_HOME}/conf/settings.xml
>> if you you're not on *nix/mac
>> 
>> Take a look at [1]&[2] to get more details
>> 
>> [1]http://fusesource.com/forums/thread.jspa?messageID=13940
>> [2]http://team.ops4j.org/wiki/display/paxurl/Mvn+Protocol
>> -------------
>> Freeman(Yue) Fang
>> 
>> Red Hat, Inc. 
>> FuseSource is now part of Red Hat
>> Web: http://fusesource.com | http://www.redhat.com/
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>> http://blog.sina.com.cn/u/1473905042
>> weibo: @Freeman小屋
>> 
>> On 2012-12-27, at 下午1:07, Tang Yong wrote:
>> 
>>> Hi freeman,
>>> 
>>> I have added the proxy into my setting.xml, however, the same error
>>> happened.
>>> 
>>> Thanks
>>> --Tang
>>> 
>>> Freeman Fang wrote:
>>>> Hi,
>>>> 
>>>> You also need add a proxy in maven setting.xml, something like
>>>> <proxies>
>>>>  <proxy>
>>>>     <active>true</active>
>>>>     <protocol>http</protocol>
>>>>     <host>...</host>
>>>>     <port>...</port>
>>>>   </proxy>
>>>> </proxies>
>>>> 
>>>> -------------
>>>> Freeman(Yue) Fang
>>>> 
>>>> Red Hat, Inc.
>>>> FuseSource is now part of Red Hat
>>>> Web: http://fusesource.com | http://www.redhat.com/
>>>> Twitter: freemanfang
>>>> Blog: http://freemanfang.blogspot.com
>>>> http://blog.sina.com.cn/u/1473905042
>>>> weibo: @Freeman小屋
>>>> 
>>>> On 2012-12-27, at 上午11:30, Tang Yong wrote:
>>>> 
>>>>> Hi Team,
>>>>> 
>>>>> The issue has appeared several times in user mail list, Today, I built
>>>>> my apache-karaf-3.0.0-SNAPSHOT based on the newest karaf source.
>>>>> 
>>>>> After I started karaf and executed "feature:repo-add camel 2.10.0" on
>>>>> Windows cmd shell, the following error happened:
>>>>> 
>>>>> karaf@root()> feature:repo-add camel 2.10.0
>>>>> Adding feature url
>>>>> mvn:org.apache.camel.karaf/apache-camel/2.10.0/xml/features
>>>>> Error executing command: Error resolving artifact
>>>>> org.apache.camel.karaf:apache-camel:xml:features:2.10.0: Could not
>>>>> transfer artifact
>>>>> org.apache.camel.karaf:apache-camel:xml:features:2.10.0 from/to central
>>>>> (http://repo1.maven.org/maven2/): Error transferring file:
>>>>> repo1.maven.org <http://repo1.maven.org> <http://repo1.maven.org>
>>>>> 
>>>>> I have set the following in etc\org.ops4j.pax.url.mvn.cfg file:
>>>>> 
>>>>> 1)org.ops4j.pax.url.mvn.settings
>>>>> BTW: My proxy setting has been set in my maven setting file.
>>>>> 
>>>>> 2)org.ops4j.pax.url.mvn.proxySupport=true
>>>>> 
>>>>> So, I wish team can confirm the issue because I think that the issue is
>>>>> very important because most of user/company have a proxy server to
>>>>> access internet.
>>>>> 
>>>>> BTW: I also tried karaf 2.3.0 and similar error still happened as
>>>>> following:
>>>>> 
>>>>> karaf@root> features:addurl
>>>>> mvn:org.apache.camel/camel-example-osgi/2.10.0/xml/features
>>>>> Error executing command: Unable to add repositories:
>>>>>      URL
>>>>> [mvn:org.apache.camel/camel-example-osgi/2.10.0/xml/features] could not
>>>>> be resolved.
>>>>> 
>>>>> Thanks
>>>>> --Tang
>>>>> 
>>>> 
>>> 
>> 
> 
> 

Reply via email to