users@jersey.java.net

[Jersey] Error with new project Maven archetype

From: Thad Humphries <thad.humphries_at_gmail.com>
Date: Sat, 3 Sep 2016 09:43:10 -0400

I am trying to explore Jersey. However when I run the Maven archetype given
in the Chapter 1 example (at
https://jersey.java.net/documentation/latest/getting-started.html#new-from-archetype
):

$ mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 \
-DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false \
-DgroupId=com.example -DartifactId=simple-service -Dpackage=com.example \
-DarchetypeVersion=2.23.2


I get the following error:

...
[INFO] Generating project in Batch mode
[INFO] Archetype repository not defined. Using the one from
[org.glassfish.jersey.archetypes:jersey-quickstart-grizzly2:2.23.2] found
in catalog remote
Downloading:
https://maven-central.storage.googleapis.com/org/glassfish/jersey/archetypes/jersey-quickstart-grizzly2/2.23.2/jersey-quickstart-grizzly2-2.23.2.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 45.122 s
[INFO] Finished at: 2016-09-03T09:29:36-04:00
[INFO] Final Memory: 14M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli)
on project standalone-pom: The desired archetype does not exist
(org.glassfish.jersey.archetypes:jersey-quickstart-grizzly2:2.23.2) ->
[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



I am using Apache Maven 3.3.9 with Java 1.8.0_101.

-- 
"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, *Doctor Faustus* (v. 121-24)