Dear forum readers,

I’m studying Servicemix as a part of my master thesis. As many others I have
therefore started on the Servicemix Camel tutorial at

http://cwiki.apache.org/SM/31-starting-a-new-project.html (1) 

As I soon found out following this tutorial generated the error described in
the mail

http://cwiki.apache.org/SM/discussion-forums.html#nabble-td25677368 

Unfortunately, the advice in the mail didn’t help me although I have the
same problem. This I don’t understand. What I have done is as follows in the
mentioned order:

1.      Downloaded Servicemix version 3.3.1
2.      Downloaded Maven version 2.2.1
3.      Created the pom.xml specified in link (1)
4.      Executed the command: 
smx-arch su camel "-DgroupId=com.ekaplus.accounting"
"-DartifactId=camel-notifyevent" "-DarchetypeVersion=2009.01"

I get the following error (screenshot at
www.henriksenweb.com/servicemix/1.png):

C:\Servicemix\Test\Test3>smx-arch su camel
"-DgroupId=com.ekaplus.accounting" "-DartifactId=camel-notifyevent"
"-DarchetypeVersion=2009.01" 
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building SMX-Camel :: 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 {execution: default-cli}]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.ekaplus.accounting
[INFO] We are using command line specified remote repositories:
@{releases-repo-url}
Downloading:
@{releases-repo-url}/org/apache/servicemix/tooling/servicemix-camel-service-unit/2009.01/servicemix-camel-service-unit-2009.01.jar
[INFO] Unable to find resource
'org.apache.servicemix.tooling:servicemix-camel-service-unit:jar:2009.01' in
repository id0 (@{releases-repo-url})
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error:
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested
download does not exist.
Unable to download the artifact from any repository
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Nov 05 01:25:47 CET 2009
[INFO] Final Memory: 8M/14M
[INFO]
------------------------------------------------------------------------
 
So I thought that maybe it was the wrong versionnumber or maybe the “new”
Maven “generate” command. Therefore I have also tried the following
commands:

smx-arch su camel "-DgroupId=com.ekaplus.accounting"
"-DartifactId=camel-notifyevent" "-DarchetypeVersion=3.3.2" 

(screenshot at www.henriksenweb.com/servicemix/2.png)

smx-arch su camel "-DgroupId=com.ekaplus.accounting"
"-DartifactId=camel-notifyevent" "-DarchetypeVersion=2009.01-SNAPSHOT"

(screenshot at www.henriksenweb.com/servicemix/3.png)

mvn archetype:generate -DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-su -DarchetypeVersion=2009.01

(screenshot at www.henriksenweb.com/servicemix/4.png)

mvn archetype:generate -DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-su -DarchetypeVersion=3.3.2

(screenshot at www.henriksenweb.com/servicemix/5.png)

C:\Servicemix\Test\Test3>mvn archetype:create
-DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-su -DarchetypeVersion=2009.01

C:\Servicemix\Test\Test3>mvn archetype:create
-DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-su -DarchetypeVersion=3.3.2

I really need your help. Am I missing some detail?

Kind regards,
Kenneth H

-- 
View this message in context: 
http://old.nabble.com/Generating-Camel-SU-with-Maven-tp26207465p26207465.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to