I use following command to create a mail su.

mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-mail-service-unit
-DgroupId=com.mycompany.myproduct -DartifactId=mycomponent.artifact


Build result is error.

======================build log=====================
[INFO]
------------------------------------------------------------------------
[INFO] Building ServiceMix :: smx-repo
[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]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.mycompany.myproduct
[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 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 -D
ackaging=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: 2 seconds
[INFO] Finished at: Thu Sep 17 14:24:38 CST 2009
[INFO] Final Memory: 12M/22M
[INFO]
------------------------------------------------------------------------


=======================end build log=====================


I have found that there is no servicemix-mail-service-unit in package
org.apache.servicemix.tooling in repository.

Please help me to create a mail su. (I use SMX 3.3.1.)
-- 
View this message in context: 
http://www.nabble.com/use-maven-create-a-mail-su-failed-tp25485849p25485849.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to