How to resolve: Maven Error: [ERROR] No plugin found for prefix ‘archetype’ in the current project…

Problem Statement

You get this error while doing  maven build:

[ERROR] 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:\Documents and Settings\<user>\.m2\repository), central (http://repo1.maven.org/maven2)%5D

Solution

Very likely, your proxy settings are the problem. If you are behind a firewall setup your proxy correctly.
Proxy settings are in settings.xml config file of maven. This file usually exists in two places:

  • <MAVEN_HOME>\conf
  • c:\documents and settings\<user>\.m2

Thats it!

Advertisements

5 responses

  1. This worked for me. I’ve been working for hours on this. Thanks so much!

  2. Thank you so much for show me the second location of maven config file. This saved me after a day finght with it.

  3. No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/vivekpatil/.m2/repository), central (https://repo.maven.apache.org/maven2)%5D

    This error it gives me on mac..Can anyone please help me out?

  4. Hello i updated proxy details in settings.xml in conf under home location but still i am facing same issue as mentioned above in my windows system is their is any other way to come out form this error and run mvn archetype:generate

    1. Hi.. make sure that settings.xml in MAVEN HOME and your USER HOME both have been updated, depending on your paths one of them would be in use.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: