第一次创建maven项目时遇到如下问题,请问该怎么解决?
来源:3-16 HDFS API编程之开发环境搭建

慕田峪0177977
2020-05-17
/home/hadoop/app/jdk1.8.0_91/bin/java -Dmaven.multiModuleProjectDirectory=/tmp/archetype9tmp -Dmaven.home=/home/hadoop/app/IDEA/idea-IU-191.8026.42/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/hadoop/app/IDEA/idea-IU-191.8026.42/plugins/maven/lib/maven3/bin/m2.conf -Dfile.encoding=UTF-8 -classpath /home/hadoop/app/IDEA/idea-IU-191.8026.42/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version2019.1.4 -s /home/hadoop/app/apache-maven-3.3.9/conf/settings.xml -DinteractiveMode=false -DgroupId=com.imooc.bigdata -DartifactId=hadoop-train-v2 -Dversion=1.0 -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DarchetypeRepository=/home/hadoop/.m2/repository org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] — maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom —
[INFO] Generating project in Batch mode
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[INFO] Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-quickstart:1.1] found in catalog internal
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.4/maven-archetype-quickstart-1.4.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.151 s
[INFO] Finished at: 2020-05-17T21:26:52+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:1.4) -> [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/confluence/display/MAVEN/MojoFailureException
1回答
-
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.4/maven-archetype-quickstart-1.4.pom
你去你的本地仓库看看这个东西是否有下载下来了,这个创建失败,很大可能是由于maven源的网络问题导致,你可以尝试换个阿里云的仓库试试
012020-05-19
相似问题