首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

maven 创造项目报错,求帮忙!

2012-10-21 
maven 创建项目报错,求帮忙!![ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-

maven 创建项目报错,求帮忙!!
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:create (default-cli) on project standalone-pom: Execution default-cli of goal
 org.apache.maven.plugins:maven-archetype-plugin:2.2:create failed: Plugin org.a
pache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies could
not be resolved: Failure to find org.codehaus.groovy:groovy:jar:1.8.3 in http://
localhost:8081/nexus/content/groups/public was cached in the local repository, r
esolution will not be reattempted until the update interval of Nexus has elapsed
 or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

[解决办法]
给你个创建java web项目的指令;
mvn archetype:create -DgroupId=easitech.test -DartifactId=test-all -DarchetypeArtifactId=maven-archetype-webapp

groupId:项目属于哪一个组;一般是公司名+项目名
DartifactId:定义当前Maven项目在组中唯一的ID(即是你的项目名)
-DarchetypeArtifactId=maven-archetype-webapp 代表创建的是一个web项目

热点排行