[jira] [Commented] (MDEP-926) proxy settings ignored for dependencies

2024-05-06 Thread Slawomir Jaranowski (Jira)


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

Slawomir Jaranowski commented on MDEP-926:
--

Yes I do it step by step

> proxy settings ignored for dependencies
> ---
>
> Key: MDEP-926
> URL: https://issues.apache.org/jira/browse/MDEP-926
> Project: Maven Dependency Plugin
>  Issue Type: Bug
>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] (MDEP-926) proxy settings ignored for dependencies

2024-05-06 Thread Sylwester Lachiewicz (Jira)


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

Sylwester Lachiewicz commented on MDEP-926:
---

The m-dependecy-p is still full of maven-artifact-transfer code. It looks like 
Slawek is doing some cleanups. 

> proxy settings ignored for dependencies
> ---
>
> Key: MDEP-926
> URL: https://issues.apache.org/jira/browse/MDEP-926
> Project: Maven Dependency Plugin
>  Issue Type: Bug
>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)