users@jersey.java.net

[Jersey] Re: Maven build error

From: Yusuf, Iqbal <iyusuf_at_oceaneering.com>
Date: Wed, 27 Aug 2014 10:05:56 -0500

Hi Adam,

It works now.

Thanks.
Iqbal


[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] Using following parameters for creating project from Old (1.x)
Archetype: jersey-quickstart-webapp:2.12
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.example
[INFO] Parameter: packageName, Value: com.example
[INFO] Parameter: package, Value: com.example
[INFO] Parameter: artifactId, Value: simple-service-webapp
[INFO] Parameter: basedir, Value: C:\projects\mavenprojects\baserestjersey
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir:
C:\projects\mavenprojects\baserestjersey\simple-service-webapp
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.358 s
[INFO] Finished at: 2014-08-27T10:03:33-06:00
[INFO] Final Memory: 13M/243M
[INFO]
------------------------------------------------------------------------


On Wed, Aug 27, 2014 at 4:20 AM, Adam Lindenthal <adam.lindenthal_at_oracle.com
> wrote:

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


-- 
Iqbal Yusuf
Work: (713) 396-8972
Cell:  (832) 418-6399