repo.maven.org repo1.maven.org

Apache maven is searching in the wrong repository.

https://repo.maven.org/maven2/

But it should point to
https://repo1.maven.org/maven2/

If you call https://repo.maven.org/maven2/ with a browser you will be redirected to https://repo1.maven.org/maven2/ .
But other programs can’t follow the redirect.
In my case it was maven itself who wanted to download a plugin.

To fix this issue you have got to patch a dowanloaded jar.

The file you got to fix is called pom-4.0.0.xml.
It’S location $M2_HOME/lib/maven-model-builder-3.0.3.jar:org/apache/maven/model/pom-4.0.0.xml


  4.0.0

  
    
      central
      Central Repository
      https://repo.maven.apache.org/maven2
      default
      
        false
      
    
  

  
    
      central
      Central Repository
      https://repo.maven.apache.org/maven2
      default
      
        false
      
      
        never
      
    
  

Leave a Comment

Your email address will not be published. Required fields are marked *

Martin Rocks