Hi Hom,

Did you enable proxy support?

etc/org.ops4j.pax.url.mvn.cfg --> org.ops4j.pax.url.mvn.proxySupport=true

If not make sure you have it set up correctly in your Maven settings.xml
and then uncomment the line above.

Best Regards,
Scott ES

On Wed, Aug 29, 2012 at 9:28 AM, hom <[email protected]> wrote:

> Hi,
>
> We are building a custom Karaf distribution using the feature descriptor:
> mvn:org.apache.camel.karaf/apache-camel/${camel.version}/xml/features
>
> It contains some bundles with repo definitions as part of the Maven url.
> For instance:
>
> <feature name='camel-script-jruby' version='2.9.2' resolver='(obr)'
> start-level='50'>
>
> <bundle>mvn:
> http://scriptengines.googlecode.com/svn/m2-repo/!com.google.code.scriptengines/scriptengines-jruby/1.1
> </bundle>
>     <bundle dependency='true'>mvn:org.jruby/jruby/1.6.7</bundle>
>   </feature>
>
> When we build out project using a http proxy the bundle resolution does not
> work.
> Without a http proxy it works.
>
> The error is:
>
> [ERROR] Failed to execute goal
> org.apache.karaf.tooling:features-maven-plugin:2.2.8:add-features-to-repo
> (add-features-to-repo-win) on project dist: Can't resolve bundle
> com.google.code.scriptengines:scriptengines-jruby:jar:1.1: Could not
> transfer artifact com.google.code.s
> criptengines:scriptengines-jruby:jar:1.1 from/to
> http://scriptengines.googlecode.com/svn/m2-repo/
> (http://scriptengines.googlecode.com/svn/m
> 2-repo/): Connection to http://scriptengines.googlecode.com refused
> [ERROR]
> com.google.code.scriptengines:scriptengines-jruby:jar:1.1
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] http://scriptengines.googlecode.com/svn/m2-repo/
> (http://scriptengines.googlecode.com/svn/m2-repo/, releases=true,
> snapshots=true):
> Connection refused: connect
>
> Do you have an idea how to use the feature in combination with a http
> proxy?
>
> Hom
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Can-not-use-Karaf-Camel-feature-behind-HTTP-proxy-tp5718267.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
-- 
Scott England-Sullivan
----------------------------------
FuseSource
Web:     http://www.fusesource.com
Blog:     http://sully6768.blogspot.com
Twitter: sully6768

Reply via email to