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
$B!]!]!]!]!]!]!]!]!]!]!]!]!](B
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$B>.20(B

On 2012-12-27, at $B2<8a(B1: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>
>> 
>> $B!]!]!]!]!]!]!]!]!]!]!]!]!](B
>> 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$B>.20(B
>> 
>> On 2012-12-27, at $B>e8a(B11: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>
>>> 
>>> 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