创建module 时启动报错

来源:4-1 Shiro集成Spring

qq_别闹_0

2018-07-04 17:43

"C:\Program Files\Java\jdk1.8.0_131\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\lvpen\AppData\Local\Temp\archetype2tmp -Dmaven.home=D:\Users\lvpen\apache-maven-3.5.3 -Dclassworlds.conf=D:\Users\lvpen\apache-maven-3.5.3\bin\m2.conf -Dfile.encoding=UTF-8 -classpath D:\Users\lvpen\apache-maven-3.5.3\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1 -DinteractiveMode=false -DgroupId=imooc-shiro -DartifactId=shiro-web -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
[WARNING] Failed to create parent directories for tracking file C:\Users\lvpen\.m2\repository\org\apache\maven\plugins\maven-archetype-plugin\resolver-status.properties
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): C:\Users\lvpen\.m2\repository\org\apache\maven\plugins\maven-archetype-plugin\maven-metadata-central.xml.part.lock (系统找不到指定的路径。)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.854 s
[INFO] Finished at: 2018-07-04T17:34:54+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (C:\Users\lvpen\.m2\repository) -> [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/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)

写回答 关注

1回答

  • qq_别闹_0
    2018-07-05 09:19:19

    缺少 maven-archetype-plugin   插件  <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-archetype-plugin -->
    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-archetype-plugin</artifactId>
        <version>3.0.1</version>
    </dependency>

Shiro安全框架入门

从零入门Shiro安全框架

48036 学习 · 332 问题

查看课程

相似问题