When I execute the following command (this is from servicemix-mail tutorial),
I had the following errors.
How can I deal with this situation?

(1) Do I need to use "generate" instead of "create"?

(2) Where I can get the file? the release version is RELEASE?

Please help me...

John

C:\LSDev\lionshare-nextgen\services\smtpbot>mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling -Darch
etypeArtifactId=servicemix-mail-service-unit -DgroupId=lionshare.smpt
-DartifactId=lionshare-smtp-bot



[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Simple SMPT Bot Example
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoad
er'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: lionshare.smpt
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=servicemix-mail-service-unit -Dversion=RELEASE -Dpackaging=jar
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
    mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=servicemix-mail-service-unit -Dversion=RELEASE -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.servicemix.tooling:servicemix-mail-service-unit:jar:RELEASE


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Nov 03 14:44:23 EST 2008
[INFO] Final Memory: 7M/14M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: 
http://www.nabble.com/mvn-create-error-in-servicemix-mail-service-unit-creation-tp20309562p20309562.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to