0

getting error while creating simple maven project

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: repo1.maven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
soni
  • 77
  • 1
  • 9

3 Answers3

1

You might want to check your internet connection (but you posted here somehow, so I guess it's OK).

Then take a look at Maven docs about user settings; if you're behind a firewall/NAT, then you probably need to add proxy definition inside the <proxy> tag.

MaDa
  • 10,511
  • 9
  • 46
  • 84
0

Read here on how to connect to maven from a proxy. Try updating after that it will work.

Community
  • 1
  • 1
ManuPK
  • 11,623
  • 10
  • 57
  • 76
0

Another possibility is that your organization firewall/proxy prohibits downloading of jars. You can verify that by trying to download the jars through a browser. If you get an error, then you may want to work with your IT folks to fix it.

Raghuram
  • 51,854
  • 11
  • 110
  • 122