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

Grzegorz Grzybek commented on KARAF-5209:
-----------------------------------------

How did you configure servers in settings.xml? I checked and I have correct 
logs in squid using settings.xml with this proxy configuration:
{code:xml}
    <proxies>
        <proxy>
            <id>proxy</id>
            <host>localhost</host>
            <port>3128</port>
            <protocol>http</protocol>
            <username>admin</username>
            <password>admin</password>
            <nonProxyHosts>127.0.0.*|*.repository.corp</nonProxyHosts>
        </proxy>
    </proxies>
{code}

{noformat}
1500626086.780   2754 127.0.0.1 TCP_MISS/200 923659 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
1500626086.780   7465 127.0.0.1 TCP_MISS/200 1740618 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
1500626086.780   7468 127.0.0.1 TCP_MISS/200 729192 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
1500626086.780   7467 127.0.0.1 TCP_MISS/200 1532949 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
1500626086.780   7472 127.0.0.1 TCP_MISS/200 2569207 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
1500626086.780  10584 127.0.0.1 TCP_MISS/200 9110051 CONNECT 
repo.maven.apache.org:443 admin HIER_DIRECT/151.101.36.215 -
{noformat}


> Karaf-Maven-plugin:assembly plugin seems to ignore proxy and credentials in 
> settings.xml
> ----------------------------------------------------------------------------------------
>
>                 Key: KARAF-5209
>                 URL: https://issues.apache.org/jira/browse/KARAF-5209
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.0.6, 4.1.1
>            Reporter: Thomas RICAUD
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.2.0, 4.1.2
>
>
> When i try to build my Karaf with the maven-karaf-plugin:assembly using a 
> secure nexus behind a proxy, the build is failing during the assembly step 
> right after unzippping kar.
> The error is failed to download artifcat  => connect timeout. (the error 
> message display the correct nexus url)
> {code:java}
> [WARNING] Error resolving artifact 
> org.ops4j.pax.jdbc:pax-jdbc-features:xml:features:0.7.0: [Could not transfer 
> artifact org.ops4j.pax.jdbc:pax-jdbc-features:xml:features:0.7.0 from/to 
> nexus (https://app1-mydomain.com/content/groups/public/): Connect to 
> app1-mydomain.com:443 [app1-mydomain.com/X.X.X.X] failed: connect timed out]
> [WARNING] Error resolving artifact 
> org.ops4j.pax.web:pax-web-features:xml:features:4.2.4: [Could not transfer 
> artifact org.ops4j.pax.web:pax-web-features:xml:features:4.2.4 from/to nexus 
> (https://app1-mydomain.com/content/groups/public/): Connect to 
> app1-mydomain.com:443 [app1-mydomain.com/X.X.X.X] failed: connect timed out]
> {code}
> If i put -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=myport.
> The build failed but this time with unauthorized access
> {code:java}
> [Could not transfer artifact 
> org.ops4j.pax.web:pax-web-features:xml:features:4.2.4 from/to nexus 
> (https://app1-mydomain.com/content/groups/public/): Not authorized , 
> ReasonPhrase:Unauthorized.]
> {code}
> If i modify the settings.xml mirror section and add to the url user:password 
> in front of the host. ( like this 
> http://user:[email protected]/content/group/public)
> It works.
> It is as if the plugin wasn't using any of the server or proxy sections of 
> the settings.xml.
> Best regards



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

Reply via email to