Error On Executing the Maven | Selenium Forum
M
Posted on 17/12/2015
Hi ,

I am getting below error
PFA
Please resolved

Thanks
deepak

M
Replied on 17/12/2015

The command you should be using to generate a project with an archetype is...

mvn archetype:generate
The command you posted in your question was wrong (missing the first 'e' in archetype). I assume this is just a typo in SO though because the error you posted had archetype spelled correctly.



if you spelled everything right please check your proxy.


M
Replied on 18/12/2015

hi ,

i have used all the Command Correctly (Spelling),also checked the proxy
but still facing issue PFA screen shot.
for more detail.

Responsive image

M
Replied on 18/12/2015

can you access this link

http://repo1.maven.org/maven2


M
Replied on 21/12/2015

Hi ,

I am able to acces link in this format
PFA screen shot

Responsive image

M
Replied on 21/12/2015

ok you can't execute the statement in cmd prompt try it on eclipse.

Responsive image

M
Replied on 22/12/2015

I got the resolution we have to set the correct path for setting.xml and proxy detail as well


M
Replied on 22/12/2015

can you explain how did you solve your problem?


M
Replied on 27/12/2015

ya sure..

I have update the settings.xml--like that------------------------------>

-<settings>
-<proxies>
-<proxy>
<active>true</active>
<protocol>http</protocol>
<host>10.33.64.14</host>
<port>8080</port>
<username/>
<password/>
<nonProxyHosts/>
</proxy>


Paste this xml in the both the folder -->
C:\Users\deepak-r\.m2\settings.xml
C:\Users\deepak-r\.m2\repository


Update the User setting through preference tab in eclipse pfa Screen shot


now execute the maven command it will work properly



Thanks
Deepak




</proxies>
</settings>

Responsive image

M
Replied on 28/12/2015

thanks