users@jersey.java.net

[Jersey] Re: Maven build error

From: Adam Lindenthal <adam.lindenthal_at_oracle.com>
Date: Wed, 27 Aug 2014 11:20:54 +0200

Hi,

it works fine for me, would you mind to try it again? If it still does
not work, could you try to generate it with some other Jersey version,
namely 2.10.1 or older?

Thanks,
Adam

PS: The other question is why the archetype catalogue contains 2.10.1 as
the most recent version and why 2.11 and 2.12 were not added. We will
take a look at it.



On 27.8.2014 02:25, Iqbal Yusuf wrote:
>
> 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