users@jersey.java.net

[Jersey] Maven build error

From: Iqbal Yusuf <iyusuf_at_dcl-online.com>
Date: Tue, 26 Aug 2014 19:25:03 -0500

I'm trying to build a pom project using the following

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.12


but getting an error that "jersey-quickstart-webapp" can't be found in
repository.

[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
with a thread count of 1
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from
[org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.10.1] found in
catalog remote
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.138 s
[INFO] Finished at: 2014-08-26T19:25:01-06:00
[INFO] Final Memory: 13M/243M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli)
on project standalone-pom: The desired archetype does not exist (
rg.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.12) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[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 read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException