cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3912) Add an archetype for jax-rs
Date Wed, 16 Nov 2011 11:04:51 GMT

    [ https://issues.apache.org/jira/browse/CXF-3912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151139#comment-13151139
] 

Sergey Beryozkin commented on CXF-3912:
---------------------------------------

Benson, what is the simplest way to work with cxf-jaxrs-service/pom.xml in order to produce
a sample project which compiles.

My initial attempt is: mvn clean install, then go to the target, unpack the jar, update $groupid,
etc, in the archetype-resources and then it all works, the integration test passes.
But that is not the way to go I guess.

So my next attempt is:
1. mvn archetype:create-from-project
2. cd target/generated-sources/archetype
3. mvn archetype:generate

and in the end I'm seeing:

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: docbkx-quickstart-archetype:2.0.10
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: test
[INFO] Parameter: artifactId, Value: test
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: test
[INFO] Parameter: packageInPathFormat, Value: test
[INFO] Parameter: package, Value: test
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: test
[INFO] Parameter: artifactId, Value: test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:18.774s
[INFO] Finished at: Wed Nov 16 10:52:33 GMT 2011
[INFO] Final Memory: 8M/490M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.1:generate
(default-cli) on project cxf-jaxrs-service-archetype-archetype: org.apache.maven.archetype.exception.InvalidPackaging:
Unable to add module to the current project as it is not of packaging type 'pom' -> [Help
1]
[ERROR] 

That is obviously FAQ but I can't find what to give to mvn archetype:generate in order to
bypass this issue
                
> Add an archetype for jax-rs
> ---------------------------
>
>                 Key: CXF-3912
>                 URL: https://issues.apache.org/jira/browse/CXF-3912
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.5
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
>             Fix For: 2.5.1
>
>
> Add a maven archetype for a jaxrs service.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message