我在一台开启了所有流量的AWS实例上安装了Maven。当我执行"mvn archetype:generate"时,它显示"构建失败"。我没有使用任何代理,没有防火墙规则,并且也禁用了selinux。
仍然显示错误。
mvn -v的输出:
[root@ip-172-31-5-153 mavapp]# mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T11:57:37+00:00)
Maven home: /opt/maven
Java version: 1.7.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.32-431.29.2.el6.centos.plus.x86_64", arch: " "amd64", family: "unix"
[root@ip-172-31-5-153 mavapp]# mvn archetype:generate [INFO] 正在扫描项目... 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-clean-plugin:2.5 的插件描述符:插件 org.apache.maven.plugins:maven-clean-plugin:2.5 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-clean-plugin:jar:2.5 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-install-plugin:2.4 的插件描述符:插件 org.apache.maven.plugins:maven-install-plugin:2.4 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-install-plugin:jar:2.4 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-deploy-plugin:2.7 的插件描述符:插件 org.apache.maven.plugins:maven-deploy-plugin:2.7 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-site-plugin:3.3 的插件描述符:插件 org.apache.maven.plugins:maven-site-plugin:3.3 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-site-plugin:jar:3.3 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-antrun-plugin:1.3 的插件描述符:插件 org.apache.maven.plugins:maven-antrun-plugin:1.3 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 的插件描述符:插件 org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-dependency-plugin:2.8 的插件描述符:插件 org.apache.maven.plugins:maven-dependency-plugin:2.8 或其某个依赖项无法解析:无法读取 org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 的构件描述符 正在下载:https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.3.2/maven-release-plugin-2.3.2.pom [WARNING] 无法检索 org.apache.maven.plugins:maven-release-plugin:2.3.2 的插件描述符:插件 org.apache.maven.plugins:maven-release-plugin:2.3.2 或其某个依赖项无法解析:无法读取 org.apache.maven
感谢您提前的支持。
谢谢。
settings.xml
存在问题。请发布文件/root/.m2/settings.xml
。 - Tunaki(https://repo.maven.apache.org/maven2): java.security.ProviderException: java.security.KeyException
的问题。除此之外,请参考这里:http://blog.backslasher.net/java-ssl-crash.html。 - khmarbaise