2

I am getting below error while executing the mvn install command from command prompt.

Plugin org.apache.maven.plugins:maven-source-plugin:1.0 or one of its dependencies could not be resolved: 
Failed to read artifact descriptor for org.apache.maven.plugins:maven-source-plugin:jar:1.0: 
Could not transfer artifact org.apache.maven.plugins:maven-source-plugin:pom:1.0 from/to central (http://repo1.maven.org/maven2): 
Error transferring file: repo1.maven.org: Unknown host repo1.maven.org -> [Help 1]

If I try to connect toa svn repository using https://broadleaf.svn.sourceforge.net/svnroot/broadleaf I am getting below error

svn: OPTIONS request failed on '/svnroot/broadleaf/'   
Connection timed out: connect

Can anyone help me?

oers
  • 18,436
  • 13
  • 66
  • 75
user1113253
  • 111
  • 2
  • 2
  • 4

2 Answers2

7

Are you behind a company firewall? You might need to configure proxy settings so that Maven can download the necessary dependencies.

Jesper
  • 202,709
  • 46
  • 318
  • 350
2

I was able fix this by binding the dns name with IP address in Unix /etc/hosts file.

like:

12.434.23.x  xxxx.domain.com
Undo
  • 25,519
  • 37
  • 106
  • 129
Aswani
  • 79
  • 2
  • 5
  • Ah this was a good reminder for me, as I was running in the Ubuntu WSL and had forgotten that it was using its own hostfile. – McKay G Apr 19 '21 at 18:26