[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-07-05 Thread Jim Sellers (Jira)


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

Jim Sellers commented on MNG-7733:
--

Thanks [~gnodet]!

Also worked for me with 4.0.0-alpha-7 and 4.0.0-alpha-8-SNAPSHOT.

> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Assignee: Guillaume Nodet
>Priority: Major
>  Labels: regresion
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-07-05 Thread Guillaume Nodet (Jira)


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

Guillaume Nodet commented on MNG-7733:
--

[~sellersj] note that 4.0.0-alpha-7 has been released a few days ago...

> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Assignee: Guillaume Nodet
>Priority: Major
>  Labels: regresion
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-07-04 Thread Jim Sellers (Jira)


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

Jim Sellers commented on MNG-7733:
--

Hi [~gnodet]

I checked the nightly 4.0.0-alpha-6-SNAPSHOT and it seems to resolve it for me 
without needing to change from the mirrorOf * setup that I had.

This seems better for me, thanks!

> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Assignee: Guillaume Nodet
>Priority: Major
>  Labels: regresion
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-06-15 Thread James Nord (Jira)


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

James Nord commented on MNG-7733:
-

> could you double check with 4.0.0-alpha-5 ?

That release seems broken - neither the tar.gz nor the .zip are available.  
(docs where published yesterday - so I would expect it to have been updated by 
now).

https://dlcdn.apache.org/maven/maven-4/4.0.0-alpha-5/binaries/apache-maven-4.0.0-alpha-5-src.tar.gz
 -> HTTP 404



> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Assignee: Guillaume Nodet
>Priority: Major
>  Labels: regresion
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-06-15 Thread Guillaume Nodet (Jira)


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

Guillaume Nodet commented on MNG-7733:
--

[~jnord_cbs], [~sellersj] could you double check with 4.0.0-alpha-5 ?
A bunch of things have been fixed in that version related to settings.

For the ehcache/jaxb problem, I've been able to fix it using the following 
mirror in my {{~/.m2/settings.xml}}:
{code}

https-netbeans
netbeans
https://netbeans.apidesign.org/maven2/

{code}

> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Assignee: Guillaume Nodet
>Priority: Major
>  Labels: regresion
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MNG-7733) maven4 user settings mirrorOf-external:* does not override global settings external:http:*

2023-03-31 Thread Jim Sellers (Jira)


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

Jim Sellers commented on MNG-7733:
--

I ran across this when using
{code:XML}

  org.ehcache
  ehcache
  3.10.8

{code}
Which has a dependency on
{code:XML}

  org.glassfish.jaxb
  jaxb-runtime
  [2.2,3)
  runtime

{code}
which in central resolves to version 2.3.0-b170127.1453 which seems to be a 
nightly build and eventually a snapshot http repo.

> maven4 user settings mirrorOf-external:* does not override global settings 
> external:http:* 
> ---
>
> Key: MNG-7733
> URL: https://issues.apache.org/jira/browse/MNG-7733
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 4.0.0-alpha-4
>Reporter: James Nord
>Priority: Major
>
> I have a settings file in my home directory (~/.m2/settings.xml) that works 
> fine with maven 3.x (including 3.9.0)
> containing
> {code}
>   
> 
>   myco-internal
>   external:*
>   https://nexus-cache.mycorp.com/content/groups/staged
> 
>   
> {code}
> with maven 4.0.0-alpha4 when building a project it will fail in dependency 
> resolution due to the `maven-default-http-blocker` mirror.
> {noformat}
> unable to create flattened dependencies: caught exception when flattening 
> dependencies: Failed to read artifact descriptor for 
> javax.servlet:javax.servlet-api::3.1.0: Could not transfer artifact 
> net.java:jvnet-parent:pom:3 from/to maven-default-http-blocker 
> (http://0.0.0.0/): Blocked mirror for repositories: [glassfish-repository 
> (http://download.java.net/maven/glassfish, default, releases+snapshots)] -
> {noformat}
> However I expect that my user settings should override global settings.
> as {{external:\*}} used in my local settings should also match anything that 
> is matched by {{external:http:\*}} in the global settings I would not expect 
> that the global settings mirror would be used.
> However this is infact the case.
> if I use --global-settings to specify my local settings file then the builds 
> work
> Additionally changing my mirror defintion to be 
> {{external:\*,external:http:\*}} still does not work
> initial output from {{mvn -x install}}
> {noformat}
> [DEBUG] Reading global settings from 
> 'c:\java\maven-4.0.0-alpha-4\conf\settings.xml'
> [DEBUG] Reading user settings from 'C:\Users\me\.m2\settings.xml'
> [DEBUG] Created adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, gav, static]
> [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
> C:\Users\me\.m2\repository
> [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for central 
> (https://repo.maven.apache.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> apache.snapshots (http://repository.apache.org/snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for apache.snapshots 
> (https://repository.apache.org/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> codehaus.snapshots (http://snapshots.repository.codehaus.org).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> repository.jboss.org (http://repository.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> snapshots.jboss.org (http://snapshots.jboss.org/maven2).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for 
> oss.sonatype.org/jboss-snapshots 
> (http://oss.sonatype.org/content/repositories/jboss-snapshots).
> [DEBUG] Using mirror myco-internal 
> (https://nexus-cache.mycorp.com/content/groups/staged) for jgit-repository 
> (https://repo.eclipse.org/content/repositories/jgit-releases/).
> [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for spy 
> (http://files.couchbase.com/maven2/).
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)