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>
>>
>> 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