我是maven的新手,我试图使用以下命令:
mvn clean install -DskipTests=true
但是我收到以下错误:
[错误]插件org.apache.maven.plugins:maven-clean-plugin:3.0.0或其中一个依赖项无法解析:无法读取org.apache.maven.plugins的工件描述符:maven- clean-plugin:jar:3.0.0:无法传输工件org.apache.maven.plugins:maven-clean-plugin:pom:3.0.0 from / to central(https://repo.maven.apache.org/maven2):java.lang.RuntimeException :意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors参数必须为非空 - > [帮助1]
我绝对不知道我错过了什么。这是我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sf.okapi</groupId>
<artifactId>build-okapi-superpom</artifactId>
<version>0.30-SNAPSHOT</version>
<relativePath>superpom/pom.xml</relativePath>
</parent>
<artifactId>build-okapi-root</artifactId>
<packaging>pom</packaging>
<name>Okapi Build Root</name>
<url>https://bitbucket.org/okapiframework/okapi</url>
<modules>
<module>superpom</module>
<module>okapi</module>
<module>okapi-ui/swt</module>
<module>applications</module>
</modules>
</project>
我的maven版本:
mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /root/apache-maven-3.3.9
Java version: 1.7.0_101, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.14.32-xxxx-grs-ipv6-64", arch: "amd64", family: "unix"