您的位置:首页 > 其它

关于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
<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.xml
contains 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项目的时候将仓库重新创建,不要用之前的仓库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  idea maven