maven - Add Archtypes to Eclipse -


i new maven , restful services. have maven installed correctly , set variables. creating webservice using jersey-quickstart-webapp found did not appeared in list of archetypes. tried add using using add archetypes option. after entering details

groupid: org.glassfish.jersey.archetypes artifactid:  jersey-quickstart-webapp version : 2.16  // version correct??  following error please help.   <b> org.eclipse.core.runtime.coreexception: not resolve artifact  org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.16</b> 

i don't have ready explanation why eclipse archetype plugin giving error, since 2.16 valid version of jersey-quickstart-webapp. however, recommend try manually executing following command command prompt:

mvn archetype:generate -darchetypeartifactid=jersey-quickstart-webapp     -darchetypegroupid=org.glassfish.jersey.archetypes -dinteractivemode=false     -dgroupid=com.example -dartifactid=simple-service-webapp -dpackage=com.example     -darchetypeversion=2.19 

make sure first delete jersey-quickstart-webapp folder, if exists, maven .m2 directory. may necessary avoid getting corrupted during archetype install.

here link official documentation creating jersey ee application maven archetype.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -