You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (JIRA)" <ji...@apache.org> on 2017/07/21 08:14:00 UTC

[jira] [Commented] (KARAF-3253) features-maven-plugin and proxy dos not work

    [ https://issues.apache.org/jira/browse/KARAF-3253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095938#comment-16095938 ] 

Grzegorz Grzybek commented on KARAF-3253:
-----------------------------------------

Confirmed. With 2.4.0 I'm getting:
{noformat}
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.4.0:add-features-to-repo (add-features-to-repo) on project test-karaf-plugins: Can't resolve bundle org.restlet.osgi:org.restlet:jar:2.2.3: Could not transfer artifact org.restlet.osgi:org.restlet:jar:2.2.3 from/to http://maven.restlet.org (http://maven.restlet.org): Error transferring file: Server returned HTTP response code: 407 for URL: http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar from http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar with proxyInfo ProxyInfo{host='localhost', userName='null', port=3128, type='http', nonProxyHosts='null'}
[ERROR]   org.restlet.osgi:org.restlet:jar:2.2.3
{noformat}

and (in squid logs):
{noformat}
1500624631.347      0 127.0.0.1 TCP_DENIED/407 4093 GET http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar - HIER_NONE/- text/html
{noformat}

With 2.3.5, I'm getting in squid:
{noformat}
1500624782.444    481 127.0.0.1 TCP_MISS/307 365 GET http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar admin HIER_DIRECT/34.208.54.13 -
1500624783.987   1532 127.0.0.1 TCP_MISS/200 697741 GET http://maven.restlet.com/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar admin HIER_DIRECT/34.208.54.13 application/java-archive
1500624784.205    208 127.0.0.1 TCP_MISS/307 395 GET http://maven.restlet.org/org/restlet/osgi/org.restlet.ext.httpclient/2.2.3/org.restlet.ext.httpclient-2.2.3.jar admin HIER_DIRECT/34.208.54.13 -
1500624784.410    204 127.0.0.1 TCP_MISS/200 18392 GET http://maven.restlet.com/org/restlet/osgi/org.restlet.ext.httpclient/2.2.3/org.restlet.ext.httpclient-2.2.3.jar admin HIER_DIRECT/34.208.54.13 application/java-archive
{noformat}


> features-maven-plugin and proxy dos not work
> --------------------------------------------
>
>                 Key: KARAF-3253
>                 URL: https://issues.apache.org/jira/browse/KARAF-3253
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 2.4.0
>         Environment: maven and http proxy server
>            Reporter: Aleksey Sushko
>
> Use newest features-maven-plugin version 2.4.0 
> {quote}
> \[INFO] ------------------------------------------------------------------------ 
> \[INFO] BUILD FAILURE 
> \[INFO] ------------------------------------------------------------------------ 
> \[INFO] Total time: 2.891s 
> \[INFO] Finished at: Mon Sep 29 10:56:16 MSK 2014 
> \[INFO] Final Memory: 15M/214M 
> \[INFO] ------------------------------------------------------------------------ 
> \[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.4.0:add-features-to-repo (add-features-to-repo) on project comita-distr: Can't resolve bundle org.restlet.osgi:org.restlet:jar:2.2.1: Could not transfer artifact org.restlet.osgi:org.restlet:jar:2.2.1 from/to http://maven.restlet.org (http://maven.restlet.org): Error transferring file: Server returned HTTP response code: 407 for URL: http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.1/org.restlet-2.2.1.jar from http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.1/org.restlet-2.2.1.jar with proxyInfo ProxyInfo\{host='proxy.domain.lan', userName='username', port=3128, type='http', nonProxyHosts='null'} 
> \[ERROR] org.restlet.osgi:org.restlet:jar:2.2.1 
> {quote}
> Use parent version features-maven-plugin version 2.3.5 
> {quote}
> \[INFO] Copying bundle: org.restlet.osgi:org.restlet:jar:2.2.1 
> Downloading: http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.1/org.restlet-2.2.1.jar
> 240/679 KB   
> {quote}
> Sample from ~/.m2/settings.xml 
> {code}
>   </proxies>
>     <proxy>
>       <id>optional</id>
>       <active>true</active>
>       <protocol>http</protocol>
>       <username>username</username>
>       <password>******</password>
>       <host>proxy.domain.lan</host>
>       <port>3128</port>
>       <nonProxyHosts>127.0.0.1|localhost|nexus.domain.lan</nonProxyHosts>
>     </proxy>
>   </proxies>
> {code}
> link to http://karaf.922171.n3.nabble.com/features-maven-plugin-2-4-0-and-proxy-dos-not-work-td4035566.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)