• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven:NoPluginFoundForPrefixException

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to the Maven build tool. I have installed apache-maven-3.0.5 in my machine. After that I've try to run the below command. I am getting the below error.
Please help on this.
mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple

Downloading: http://search.maven.org/org/wildfly/plugins/maven-metadata.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.612s
[INFO] Finished at: Wed Mar 18 20:17:46 IST 2015
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.wildfly.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (c:\tools\home\.m2\repository), central (http://search.maven.org/)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
**********************************************************************************
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could run that command fine.. I suspect you have messed around with your repository configurations. search.maven.org is not a maven repository . It should be http://central.maven.org/maven2/org/wildfly/plugins/

Can you post your settings.xml?
 
Anjaneya Reddy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please find the setting.xml file

 
Jayesh A Lalwani
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don;t think this section is right. DO you know why you added this? Has it ever worked since you added that profile?



Just to try it out without that section, run

mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple -P !nexus

This will disable the nexus profile. If it works, remove that profile from your settings.xml
 
Anjaneya Reddy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for quick response.


I have tried below combination.it is working fine.

1. I have removed the profile tags and execute the(mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple ) command, It is working fine as expected.
2. I have tried this (mvn archetype:generate -DgroupId=com.mytutorial -DartifactId=simple -P !nexus ) with my old settings.xml file. It is working fine as expected.

As per above disable nexus command. I think there is problem in Nexus profile. Can you please share what would be the correct approach.

Thank you.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic