关于idea创建项目的一些异常
2017-09-21 21:25
369 查看
1:INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23:04 min
[INFO] Finished at: 2017-03-07T17:12:18+08:00
[INFO] Final Memory: 8M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: SSL peer shut down incorrectly -> [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)
更多0
通过查询http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException查询的结果,他总结了一下几个原因;
Go to start of metadata
This error occurs when you employ a plugin that Maven could not download. Possible causes for this error are:
# 你正在检查一个不存在的插件,例如:错误的插件Id或者版本
You are referring to a non-existing plugin, e.g. by means of a typo in its group id, artifact id or version
#你正在使用第三方的maven插件,确实是啊,我构建新项目的时候用的是我之前的maven仓库里面有maven-plugin插件
You are using a third-party Maven plugin that is not deployed to the central Maven repository and your POM/settings is missing the required
The plugin repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your
Settings Reference for more details.
There is a general network problem that prevents Maven from accessing any remote repository, e.g. a missing proxy configuration.
Maven failed to save the files to your local repository, see
LocalRepositoryNotAccessibleException for more details.
The plugin repository you have configured is disabled for the specific version of the plugin you requested. For instance, if you want to use a SNAPSHOT version of a plugin, make sure you don't have
configured. Likewise, in order to resolve a released version of the plugin, the plugin repository should not be configured with
POM Reference for more information on repository configuration.
解决办法:在创建maven项目的时候将仓库重新创建,不要用之前的仓库
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23:04 min
[INFO] Finished at: 2017-03-07T17:12:18+08:00
[INFO] Final Memory: 8M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: SSL peer shut down incorrectly -> [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)
更多0
通过查询http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException查询的结果,他总结了一下几个原因;
Go to start of metadata
This error occurs when you employ a plugin that Maven could not download. Possible causes for this error are:
# 你正在检查一个不存在的插件,例如:错误的插件Id或者版本
You are referring to a non-existing plugin, e.g. by means of a typo in its group id, artifact id or version
#你正在使用第三方的maven插件,确实是啊,我构建新项目的时候用的是我之前的maven仓库里面有maven-plugin插件
You are using a third-party Maven plugin that is not deployed to the central Maven repository and your POM/settings is missing the required
<pluginRepository>to download the plugin. Note that
<repository>declarations are not considered when looking for the plugin and its dependencies, only
<pluginRepositories>are searched for plugins.
The plugin repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your
${user.home}/.m2/settings.xmlcontains a
<server>declaration whose
<id>matches the
<id>of the plugin repository to use. See theMaven
Settings Reference for more details.
There is a general network problem that prevents Maven from accessing any remote repository, e.g. a missing proxy configuration.
Maven failed to save the files to your local repository, see
LocalRepositoryNotAccessibleException for more details.
The plugin repository you have configured is disabled for the specific version of the plugin you requested. For instance, if you want to use a SNAPSHOT version of a plugin, make sure you don't have
<snapshots><enabled>false</enabled></snapshots>
configured. Likewise, in order to resolve a released version of the plugin, the plugin repository should not be configured with
<releases><enabled>false</enabled></releases>. See the
POM Reference for more information on repository configuration.
解决办法:在创建maven项目的时候将仓库重新创建,不要用之前的仓库
相关文章推荐
- 关于Unity项目中创建项目遇到的一些问题
- 关于项目中异常处理的一些总结
- idea创建maven web项目需要注意的一些细节
- 关于项目中异常处理的一些总结
- 关于idea创建Spring 的一些基础知识
- intellij idea Maven 创建项目时出现的一些问题
- 使用 IDEA 创建 Maven Web 项目 (异常)- Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'
- 20130910 一些想法,关于项目中异常处理的解决方案,以及Elmah
- 关于Android Studio or IDEA创建新项目一直卡死在Gradle问题
- 关于项目中异常处理的一些总结(转)
- [置顶] 关于Idea基于maven创建springMvc项目中配置文件自动扫描找不到base-package问题
- 关于idea SpringBoot项目中出现与数据库连接加载不到驱动类异常
- 关于项目中异常处理的一些总结
- 关于CSDN CODE创建项目的一些体会
- 最近要做个项目,遇到一些关于ansys问题,看看兄弟们能否帮我解决?
- 关于搭建Maven-webapp项目的过程及一些问题
- IDEA创建项目及上传到github
- Idea 创建Maven多模块项目
- 如何删除idea里面创建的工程项目
- IDEA 创建Web项目并在Tomcat中部署运行