Maven 无法在 pom.xml 中读取 org.codehaus.mojo:jaxb2-maven-plugin:jar:1.6 的工件描述符?
Maven Failed to read artifact descriptor for org.codehaus.mojo:jaxb2-maven-plugin:jar:1.6 in pom.xml?
我已经像在 Eclipse(luna) 中一样从 svn 中检查为 "Checkout Maven Project as SCM"。之后我在 pom.xml.How 中收到 g 错误来解决错误。?下面是错误...
Console.log:
> [INFO] Scanning for projects... [INFO] [INFO] Using the builder
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
> with a thread count of 1 [INFO]
> [INFO]
> ------------------------------------------------------------------------ [INFO] Building Bosch FS module 1.1-snapshot [INFO]
> ------------------------------------------------------------------------ [INFO] Downloading:
> http://repo.maven.apache.org/maven2/org/codehaus/mojo/jaxb2-maven-plugin/1.6/jaxb2-maven-plugin-1.6.pom
> [INFO]
> ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
> ------------------------------------------------------------------------ [INFO] Total time: 0.717 s [INFO] Finished at:
> 2015-01-12T09:33:05+01:00 [INFO] Final Memory: 6M/76M [INFO]
> ------------------------------------------------------------------------ [ERROR] Plugin org.codehaus.mojo:jaxb2-maven-plugin:1.6 or one of its
> dependencies could not be resolved: Failed to read artifact descriptor
> for org.codehaus.mojo:jaxb2-maven-plugin:jar:1.6: Could not transfer
> artifact org.codehaus.mojo:jaxb2-maven-plugin:pom:1.6 from/to central
> (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown
> host repo.maven.apache.org -> [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
谢谢,
湿婆
中央存储库的 url 似乎是旧的。推荐的url如下https://repo1.maven.org/maven2
问题
我认为您无法从 Maven 中央存储库下载所需的工件,因为中央存储库被您的代理服务器阻止。
可能的解决方案
脚步
1-转到 C:\Users\username.m2 并删除存储库文件夹。
2-在同一位置创建一个 settings.xml
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>ip of your proxy</host>
<port>port of your proxy</port>
<username>your machine login username</username>
<password>your machine login password</password>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
我已经像在 Eclipse(luna) 中一样从 svn 中检查为 "Checkout Maven Project as SCM"。之后我在 pom.xml.How 中收到 g 错误来解决错误。?下面是错误...
Console.log:
> [INFO] Scanning for projects... [INFO] [INFO] Using the builder
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
> with a thread count of 1 [INFO]
> [INFO]
> ------------------------------------------------------------------------ [INFO] Building Bosch FS module 1.1-snapshot [INFO]
> ------------------------------------------------------------------------ [INFO] Downloading:
> http://repo.maven.apache.org/maven2/org/codehaus/mojo/jaxb2-maven-plugin/1.6/jaxb2-maven-plugin-1.6.pom
> [INFO]
> ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
> ------------------------------------------------------------------------ [INFO] Total time: 0.717 s [INFO] Finished at:
> 2015-01-12T09:33:05+01:00 [INFO] Final Memory: 6M/76M [INFO]
> ------------------------------------------------------------------------ [ERROR] Plugin org.codehaus.mojo:jaxb2-maven-plugin:1.6 or one of its
> dependencies could not be resolved: Failed to read artifact descriptor
> for org.codehaus.mojo:jaxb2-maven-plugin:jar:1.6: Could not transfer
> artifact org.codehaus.mojo:jaxb2-maven-plugin:pom:1.6 from/to central
> (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown
> host repo.maven.apache.org -> [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
谢谢, 湿婆
中央存储库的 url 似乎是旧的。推荐的url如下https://repo1.maven.org/maven2
问题 我认为您无法从 Maven 中央存储库下载所需的工件,因为中央存储库被您的代理服务器阻止。
可能的解决方案 脚步 1-转到 C:\Users\username.m2 并删除存储库文件夹。 2-在同一位置创建一个 settings.xml
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>ip of your proxy</host>
<port>port of your proxy</port>
<username>your machine login username</username>
<password>your machine login password</password>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
</settings>