[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840701#comment-17840701 ] Patrick Mackinlay commented on MNG-8104: maven 3.9.2 uses maven-dependency-plugin 2.8, so yes I would say that the problem is in the plugin. If I create a pom which specifically downgrades the maven-dependency-plugin to 2.8 then it will build with maven 3.9.6. However, all maven releases after 3.9.2 are broken. Most people do not specifically downgrade plugins in all their poms. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840090#comment-17840090 ] Tamas Cservenak commented on MNG-8104: -- One more question: you say 3.9.2 "works" and 3.9.6 "does not work". Any info about used m-dependency-p version maybe? So m-dependency-p 3.6.1 works in Maven 3.9.2 but does not work in Maven 3.9.6? > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840089#comment-17840089 ] Tamas Cservenak commented on MNG-8104: -- Yes, but this is clearly m-dependency-p issue, as the plugin itself was downloaded (via proxy) as it runs... So, this issue is related to m-dependency-p and not Maven. Maven is fine. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840074#comment-17840074 ] Patrick Mackinlay commented on MNG-8104: an error like [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.1:get (default-cli) on project standalone-pom: Couldn't download artifact: org.eclipse.aether.resolution.DependencyResolutionException: Failed to read artifact descriptor for org.apache.maven:maven-core:jar:2.2.1: The following artifacts could not be resolved: org.apache.maven:maven-core:pom:2.2.1 (absent): Could not transfer artifact org.apache.maven:maven-core:pom:2.2.1 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.72.215] failed: connect timed out -> [Help 1] [ERROR] > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840070#comment-17840070 ] Tamas Cservenak commented on MNG-8104: -- When you say "build fails", what error you get? > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840064#comment-17840064 ] Patrick Mackinlay commented on MNG-8104: Its not just "dependency:get". I used dependency get as an example and to resproduce the problem. All our builds fail with maven 3.9.6 and a cleared repository. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840056#comment-17840056 ] Tamas Cservenak commented on MNG-8104: -- As a workaround, you can try {noformat} eu.maveniverse.maven.plugins:toolbox:gav-resolve-transitive -Dgav=org.apache.maven:maven-core:2.2.1 {noformat} Tested it, and this one obeys HTTP proxy. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840053#comment-17840053 ] Tamas Cservenak commented on MNG-8104: -- Ok I think I got it. This issue is not about Maven 3.9.6, is fine. This issue is about dependency:get that it does not honors proxy. On my reproducer I did this: {noformat} $ mvn -Dmaven.repo.local=local -s settings.xml dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core -Dversion=2.2.1 -Daether.connector.https.securityMode=insecure {noformat} and plugin was dowloaded thru proxy, but the maven-core:2.2.1 (and transitive hull) {*}was not{*}. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png, settings.xml > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840048#comment-17840048 ] Tamas Cservenak commented on MNG-8104: -- Created a reproducer [https://github.com/cstamas/MNG-8104] It works well locally: all went thru mitmproxy !image-2024-04-23-12-02-38-218.png! > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > Attachments: image-2024-04-23-12-02-38-218.png > > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840046#comment-17840046 ] Tamas Cservenak commented on MNG-8104: -- And what kind of error you have? > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840033#comment-17840033 ] Patrick Mackinlay commented on MNG-8104: Its a vanilla install of maven 3.9.6, with the ~/.m2 directory completely cleared and the settings containing just one http proxy (can't show the details of the corp network, but its just a regular http proxy). Nothing else, no extensions, no other plugins. Note that the mvn dependency:get command is run from an empty directory, so no pom is read (hence no plugins/extension ..). The problem is as simple as the proxy settings are completely ignored for dependencies. > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840029#comment-17840029 ] Tamas Cservenak commented on MNG-8104: -- Can you tell us a bit more info? We talk about Maven 3.9.6, but what transport do you use? What kind of proxy you use? Any extension or alike? > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840025#comment-17840025 ] Patrick Mackinlay commented on MNG-8104: Its about the full maven 3.9.6 release, in a corporate environment (no direct internet) nothing can be built with a fresh local repository. A build will result in all the plugins downloading, but then it fails on the first remote dependency. I dont know what component is actually broken... > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MNG-8104) proxy settings ignored for dependencies
[ https://issues.apache.org/jira/browse/MNG-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17840021#comment-17840021 ] Tamas Cservenak commented on MNG-8104: -- Is this issue about m-dependency-p plugin or Maven core? Like you cannot build as Maven fails to get dependencies when proxy used? > proxy settings ignored for dependencies > --- > > Key: MNG-8104 > URL: https://issues.apache.org/jira/browse/MNG-8104 > Project: Maven > Issue Type: Bug > Components: Core >Affects Versions: 3.9.6 >Reporter: Patrick Mackinlay >Priority: Major > > The proxy settings are ignored for dependencies in maven 3.9.6 (working in > 3.9.2). > On a machine with no direct internet access, if you clear your local > repository with a command like: > rm -rf ~/.m2/repository/org/apache/maven/maven-core/2.2.1 > and then try and download the dependency: > mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core > -Dversion=2.2.1 > > It will fail. The proxy settings are ignored. However, it should be noted > that for plugins they are used, its only for dependencies that they are > ignored. > maven version 3.9.2 works, so looks like this was introduced in 3.9.3 > probably when the dependency plugin version was upgraded. > > I used a minimal settings.xml with just one proxy entry. -- This message was sent by Atlassian Jira (v8.20.10#820010)