插件org.apache.maven.plugins:maven-enforcer-plugin:1.3.1在本地存储库中不可用

时间:2016-06-15 19:04:08

标签: java eclipse maven m2e maven-enforcer-plugin

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ParentPom 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.3.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.235s
[INFO] Finished at: Wed Jun 15 13:44:12 CDT 2016
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-enforcer-plugin:1.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.3.1: The repository system is offline but the artifact org.apache.maven.plugins:maven-enforcer-plugin:pom:1.3.1 is not available in the local 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

请帮我成功构建项目。罐子在确切的当地空间。 Settings.xml也已设置。通过启用脱机运行全新安装 我在settings.xml中提到了以下标记,以便在线下查找罐子

<localRepository>C:\Users\user-id\.m2\repository</localRepository>

0 个答案:

没有答案