You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Thomas RICAUD (JIRA)" <ji...@apache.org> on 2017/06/15 11:19:00 UTC

[jira] [Updated] (KARAF-5209) Karaf-Maven-plugin:assembly plugin seems to ignore proxy and credentials in settings.xml

     [ https://issues.apache.org/jira/browse/KARAF-5209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas RICAUD updated KARAF-5209:
---------------------------------
    Description: 
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)
If i put -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=myport.
The build failed but this time with unauthorized access

If i modify the settings.xml mirror section and add to the url user:password in front of the host. ( like this http://user:password@mynexus.com/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



  was:
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 state cannot download artifcat with the correct mirror url (from the settings.xml) but with a connect timeout.
If i put -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=myport.
The build failed but this time with unauthorized access

If i modify the settings.xml mirror section and add to the url user:password in front of the host. ( like this http://user:password@mynexus.com/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




> 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
>            Reporter: Thomas RICAUD
>
> 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)
> If i put -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=myport.
> The build failed but this time with unauthorized access
> If i modify the settings.xml mirror section and add to the url user:password in front of the host. ( like this http://user:password@mynexus.com/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)