Hi, I had the same error as you. Finally I found the file related on the artefact 'servicemix-mail-service-unit' on this maven repository: http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/servicemix-mail-service-unit/2008.01-SNAPSHOT/
I downloaded it and install it on my local repository using the same command indicated in the previous error message. Unfortunatly when I try again the 'create' command, I have again the same error message. Any help would be nice. Thanks. Richard. jwy923 wrote: > > 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-tp20309562p20313166.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
