maven命令创建项目失败
1 安装好maven并设置好环境变量后
2 用maven命令创建项目,在maven安装目录conf下settiing.xml添加小象镜像
3 然后用命令创建项目,失败。
mvn -B archetype:generate\
-DarchetypeGroupId=org.apache.maven.archetypes\
-DarchetypeArtifactId=maven-archetype-quickstart\
-DgroupId=com.mycompany.app\
-DartifactId=my-ap
4 报错信息如下
[root@liujunjie project]# mvn -B archetype:generate-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DgroupId=com.mycompany.app-DartifactId=my-app
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.957 s
[INFO] Finished at: 2016-03-26T12:30:03+08:00
[INFO] Final Memory: 6M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'generate-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DgroupId=com.mycompany.app-DartifactId=my-app' in plugin org.apache.maven.plugins:maven-archetype-plugin:2.4 among available goals crawl, create, create-from-project, generate, help, integration-test, jar, update-local-catalog -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/conflu ... ption
2 用maven命令创建项目,在maven安装目录conf下settiing.xml添加小象镜像
3 然后用命令创建项目,失败。
mvn -B archetype:generate\
-DarchetypeGroupId=org.apache.maven.archetypes\
-DarchetypeArtifactId=maven-archetype-quickstart\
-DgroupId=com.mycompany.app\
-DartifactId=my-ap
4 报错信息如下
[root@liujunjie project]# mvn -B archetype:generate-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DgroupId=com.mycompany.app-DartifactId=my-app
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.957 s
[INFO] Finished at: 2016-03-26T12:30:03+08:00
[INFO] Final Memory: 6M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'generate-DarchetypeGroupId=org.apache.maven.archetypes-DarchetypeArtifactId=maven-archetype-quickstart-DgroupId=com.mycompany.app-DartifactId=my-app' in plugin org.apache.maven.plugins:maven-archetype-plugin:2.4 among available goals crawl, create, create-from-project, generate, help, integration-test, jar, update-local-catalog -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/conflu ... ption
3 个回复
fish - Hadooper
赞同来自: 唯思可达 、wangxiaolei
唯思可达
赞同来自:
blueyanghualon - IT男 80后 大数据路人
赞同来自: