0

When I create a maven project on Netbeans 8.0.2 it gives the following error and the build fails:

No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\user1.m2\repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

How can I solve this?

Adrian Mole
  • 43,040
  • 110
  • 45
  • 72

2 Answers2

1

Your version of NetBeans (8.0.2) uses bundled maven which doesn't support a new requirement of using https with the Maven Central Repository.

You can:

  • Update to NetBeans 11.0 LTS (or 11.2)
  • Download and install last version of standalone maven

Please, see the detailed answer here.

Dmitry.M
  • 2,509
  • 1
  • 13
  • 25
0

Check if your firewall is blocking to access the maven repo, and allow it if so. You can check this answer.