You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by kai0411 <jo...@softechnics.com> on 2009/01/13 19:01:02 UTC

Using a Maven archetype to create the service unit project

Downloaded ServiceMix 3.3, unzip in 'Program Files' directory.
try to follow tutorial in
http://servicemix.apache.org/21-beginner-creating-our-first-su-module.html:
created a new directory, added the pom.xml in it, then mvn install, the
output is:
C:\temp\0113>mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\temp\0113\pom.xml to C:\Documents and
Settings\jwang\.m2\repository\org\apache\servicemix\tutorial\parent\1.0
-SNAPSHOT\parent-1.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jan 13 11:45:44 CST 2009
[INFO] Final Memory: 6M/12M

But got error in next step:
C:\temp\0113>mvn archetype:create
-DarchetypeArtifactId=servicemix-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling -
DartifactId=tutorial-file-su
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: org.apache.servicemix.tutorial
[INFO] artifact org.apache.servicemix.tooling:servicemix-service-unit:
checking for updates from central
Downloading:
http://pc17:8181/archiva/repository/internal/org/apache/servicemix/tooling/servicemix-service-unit/2008.01/servicemix
-service-unit-2008.01.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
http://pc17:8181/archiva/repository/internal/org/apache/servicemix/tooling/servicemix-service-unit/2008.01/servicemix-service-unit
-2008.01.jar
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Jan 13 11:47:53 CST 2009
[INFO] Final Memory: 7M/13M
[INFO]
------------------------------------------------------------------------

Error is: OldArchetype does not exist. What do I miss? thanks


-- 
View this message in context: http://www.nabble.com/Using-a-Maven-archetype-to-create-the-service-unit-project-tp21441055p21441055.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.