mvn archetypes on linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mvn archetypes on linux

BOND Stone
Hi everyone, thanks for reading...
Here's my issue:

hadoop@stone-Vostro-1088:/opt/mahout/mahout-distribution-0.5/webapp$ mvn archetype:create -DgroupId=com.wangdong.hello -DartifactId=projecthello
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [archetype:create {execution: default-cli}]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.wangdong.hello
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:RELEASE
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.wangdong.hello
[INFO] Parameter: packageName, Value: com.wangdong.hello
[INFO] Parameter: package, Value: com.wangdong.hello
[INFO] Parameter: artifactId, Value: projecthello
[INFO] Parameter: basedir, Value: /opt/mahout/mahout-distribution-0.5/webapp
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: Error merging velocity templates
/opt/mahout/mahout-distribution-0.5/webapp/projecthello/pom.xml (No such file or directory)
[INFO] ------------------------------------------------------------------------


hadoop@stone-Vostro-1088:/opt/mahout/mahout-distribution-0.5/webapp$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.7.0_15
Java home: /opt/java/jdk1.7.0_15/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux" version: "3.2.0-23-generic-pae" arch: "i386" Family: "unix"
hadoop@stone-Vostro-1088:/opt/mahout/mahout-distribution-0.5/webapp$
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Feb 28 22:52:43 CST 2013
[INFO] Final Memory: 16M/152M
[INFO] ------------------------------------------------------------------------