INTRODUCTION
This post will help you to resolve the error which will occur during the creation of Project using Maven.
Error
could not resolve archetype org.apache.maven.archetypes maven-archetype-quickstart
ENVIRONMENT VARIABLES SETTINGS
Add the below environment variables.
- MAVEN_HOME=c:\maven-3.3.3
- M2_HOME==c:\maven-3.3.3
- CLASSPATH = %MAVEN_HOME%\lib;
- PATH=%MAVEN_HOME%\bin;
PROXY SETTINGS
Set this if you are connected with any vpn.
- Go to c:\maven-3.3.3\conf\settings.xml
- Add Your proxy details
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>www.myweb.com</host>
<port>80</port>
</proxy>
ECLIPSE SETTINGS
- Open Run Command and type . (just dot), you will be directed to your local user path like c:\Users\<username>
- Delete .m2 folder permanently
- Open Eclipse
- Go to Windows->Preferences->Maven->User Settings
- Global Settings: c:\maven-3.3.3\conf\settings.xml
- User Settings: c:\maven-3.3.3\conf\settings.xml
- Click Update Settings & Reindex
- Restart the Eclipse
Now try to create a Maven Eclipse and Maven Project will be created successfully. Please reply your comments if you still facing any error.
No comments :
Post a Comment