I am getting error while creating MAVEN project.
D:\Rajasekhar\Selenium>mvn archetype:generate
[INFO] Scanning for projects...
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:mave
n-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on
e 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
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 o
r one of its dependencies could not be resolved: Failed to read artifact descrip
tor for org.apache.maven.plugins:maven-install-plugin:jar:2.4
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-deploy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or
one of its dependencies could not be resolved: Failed to read artifact descripto
r for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one
of its dependencies could not be resolved: Failed to read artifact descriptor fo
r org.apache.maven.plugins:maven-site-plugin:jar:3.3
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or
one of its dependencies could not be resolved: Failed to read artifact descripto
r for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plu
gin:2.2-beta-5 or one of its dependencies could not be resolved: Failed to read
artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-b
eta-5
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin
:2.8 or one of its dependencies could not be resolved: Failed to read artifact d
escriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-release-plugin/2.5.3/maven-release-plugin-2.5.3.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-release-plugin:2.5.3: Plugin org.apache.maven.plugins:maven-release-plugin:2.5
.3 or one of its dependencies could not be resolved: Failed to read artifact des
criptor for org.apache.maven.plugins:maven-release-plugin:jar:2.5.3
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo
/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
plugins/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to central (https://repo.maven.apache.org/maven2): Transfer failed for ht
tps://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml P
roxyInfo{host='proxy.host.net', userName='null', port=8080, type='http', nonProx
yHosts='null'}
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to central (https://repo.maven.apache.org/maven2): Transfer failed for https://r
epo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml ProxyInfo{host=
'proxy.host.net', userName='null', port=8080, type='http', nonProxyHosts='null'}
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from h
ttps://repo.maven.apache.org/maven2 was cached in the local repository, resoluti
on will not be reattempted until the update interval of central has elapsed or u
pdates are forced. Original error: Could not transfer metadata org.apache.maven.
plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2
): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plu
gins/maven-metadata.xml ProxyInfo{host='proxy.host.net', userName='null', port=8
080, type='http', nonProxyHosts='null'}
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will
not be reattempted until the update interval of central has elapsed or updates
are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-
metadata.xml from/to central (https://repo.maven.apache.org/maven2): Transfer fa
iled for https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.x
ml ProxyInfo{host='proxy.host.net', userName='null', port=8080, type='http', non
ProxyHosts='null'}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.087 s
[INFO] Finished at: 2020-08-31T10:47:26+05:30
[INFO] ------------------------------------------------------------------------
[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\Raja\.m2\repository), central (https://repo.maven.
apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF
orPrefixException
Please provide me the solution. I have tried so many answers from google but nothing worked.
Thankyou-Raj.
Instructor
Ashish Thakur Replied on 01/09/2020
Which version of maven are you working with
Hi Ashish,
I have tried with 3.6.3 and 3.5.3 versions.
Instructor
Ashish Thakur Replied on 04/09/2020
Can you try to create from eclipse?
Are you using a firewall or office laptop/network
I am able to create it
Hi
I have disabled firewall in my personal laptop still gettting the same error.
i have tried in my office laptop too getting the same error.
is there any thing i can do with settings.xml file? i have been seeing xml type answers in some portals so could you help me on settings.xml side
how it is in ur system or how it can be done? please help im struggling from last 6 days.
I have tried from eclipse also getting the below error in the attachment after clicking on rightclick-> maven-> update project.
Hello Sir,
I am also receiving the same error but while I create project from eclipse.
Please help resolve. I ahve attached the file.
Instructor
Ashish Thakur Replied on 11/09/2020
It seems that maven servers may be down. Please try again. If the problem persists, let us know.
Hi Ashish,
I still receive the same error and i have tried so many times:
Instructor
Ashish Thakur Replied on 15/09/2020
I'm able to create it without hassles.
Try creating a new project using a command-line interface.
Hi,
I am also facing the same issue even after disabling the defender and all. Can anyone guide me on the same?
This is so straight forward but it's in the loop now.
Would appreciate the solution!
Thanks,
Amruta