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
  • 67
  • 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,238
  • 8
  • 44
  • 83
0

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

Community
  • 1
  • 1
ManuPK
  • 11,403
  • 10
  • 56
  • 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
  • 50,726
  • 11
  • 108
  • 122