Mvn archetype:generate command issue | Selenium Forum
S
Saint Posted on 07/12/2019

Ashish, i am facing problem when i run mvn archetype:generate command to create a maven project 

I tried creating maven project through CMD prompt as well as through eclipse 

Below is warnign and error message respecitively i see in Command prompt

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom

[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:\Users\p2752080\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

I have attached screenshots of error messages for CMD and Eclipse.

Will appreciate if you could help me out.

Thanks 


A
Ashish Thakur Replied on 11/12/2019

Try now

Sometimes MVN repository is down and you get it

Alternatively you can create a maven project from eclipse directly and use it to create a new maven project