Error:
[INFO] Scanning for projects ... [INFO] [INFO]------------------------------------------------------------------------[INFO] Building mavenlearning 0.0.1 -snapshot[info]------------------------------------------------------------------------[INFO] Downloading:https ://REPO.MAVEN.APACHE.ORG/MAVEN2/ORG/APACHE/MAVEN/PLUGINS/MAVEN-SUREFIRE-PLUGIN/2.19.1/ Maven-surefire-plugin-2.19.1.pom[info]------------------------------------------------------------------------ [INFO] BUILD Failure[info]------------------------------------------------------------------------[INFO] Total time: 1.462 S[info] finished at:2016-05-10t16:50:17+08:00[info] Final Memory:7m/115m[info]------------------------------- -----------------------------------------[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.19.1 or One of its dependencies could is resolved:failed to read artifact descriptor for org.apache.maven.plugins:maven-Surefire-plugin:jar:2.19.1:could Not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.19.1 From/to Central (HTTPS://REPO.MAVEN.APACHE.ORG/MAVEN2): RSA premaster Secret Error:suntlsrsapremastersecret Keygenerator not available (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 on the errors and possible solutions, please read the following articles:[error] [Help 1] http://c Wiki.apache.org/confluence/display/maven/pluginresolutionexception
After switching to 2.18.1, you can:
Code:
<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/xsd/maven-4.0.0.xsd" >< Modelversion>4.0.0</modelversion><groupid>org.xubo.maven</groupid><artifactid> mavenlearning</artifactid><version>0.0.1-snapshot</version><packaging>jar</ packaging><name>mavenlearning</name><url>http://maven.apache.org</url>< Properties><project.build.sourceencoding>utf-8</project.build.sourceencoding><junit.version >4.11</junit.version></properties><dependencies><dependency><groupid>junit </groupid><artifactid>junit</artifactid><version>4.11</version><scope>test </scope></dependency><dependency><groupid>log4j</groupid><artifactid>log4j </artifactid><version>1.2.17</version><scope>compile</scope></dependency></dependencies><build>< Plugins><plugin><groupid>org.apache.maven.plugins</groupid><artifactid> maven-surefire-plugin</artifactid><version>2.18.1</version><configuration>< Skiptests>true</skiptests> <!--<includes><include>**/hello*.java</include></ Includes>--></configuration></plugin></plugins></build></project>
Results:
[INFO] Scanning for projects ... [INFO] [INFO]------------------------------------------------------------------------[INFO] Building mavenlearning 0.0.1 -snapshot[info]------------------------------------------------------------------------[INFO] [INFO]--- Maven-resources-plugin:2.6:resources (default-resources) @ mavenlearning---[INFO] Using ' UTF-8 ' encoding to copy Filtered resources. [INFO] Skip non existing resourcedirectory d:\all\eclipse432\mavenlearning\src\main\resources[info] [INFO]--- Maven-compiler-plugin:3.1:compile (default-compile) @ mavenlearning---[INFO] nothing to Compile-all classes is up to D Ate[info] [INFO]---maven-resources-plugin:2.6:testresources (default-testresources) @ mavenlearning---[info] Using ' UTF-8 ' encoding to copy filtered resources. [INFO] Skip non existing resourcedirectory d:\all\eclipse432\mavenlearning\src\test\resources[info] [INFO]--- Maven-compiler-plugin:3.1:testcOmpile (default-testcompile) @ mavenlearning---[info] Nothing to Compile-all classes is up to date[info] [INFO]---MA Ven-surefire-plugin:2.18.1:test (default-test) @ mavenlearning---[INFO] Tests is skipped. [INFO]------------------------------------------------------------------------[INFO] BUILD Success[info]-------- ----------------------------------------------------------------[INFO] Total time:1.711 s[info] finished at: 2016-05-10t16:50:41+08:00[info] Final Memory:9m/167m[info]------------------------------------------------------ ------------------
Maven learns 12 skip test Surefire 2.19.1 Version Error