Git package Error: Maven build prompt: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

Source: Internet
Author: User

1. Using the GIT Upgrade service command

MVN deploy-e

After the error:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4: Test (default-test) on project zm-live-client:unable to generate CLASSPATH: Org.apache.maven.artifact.resolver.ArtifactResolutionException:Unable toGetDependency information forOrg.apache.maven.surefire:surefire-junit4:jar:2.12.4: Failed to retrieve POM forOrg.apache.maven.surefire:surefire-junit4:jar:2.12.4: Could not transfer artifact Org.apache.maven.surefire:surefire-junit4:pom:2.12.4  from/to Central (https://repo.maven.apache.org/maven2): Received fatal alert:protocol_version[ERROR] Org.apache.maven.surefire:surefire-junit4:jar:2.12.4[Error][error] fromThe specified remote repositories:[error] Central (https://repo.maven.apache.org/maven2, Releases=true, Snapshots=false)[ERROR] Path to Dependency:[error]1) Dummy:dummy:jar:1.0[ERROR]--[Help1]

Then try, mvn install the same error

Cause: The specified jar package cannot be downloaded from the MAVEN download.

Workaround:

1.maven Instal-dmaven.test.skip=true

Add the following code to the 2.pom.xml:

<plugin>          <groupId>org.apache.maven.plugins</groupId>          <artifactId> maven-surefire-plugin</artifactid>          <version>2.4.  2</version>          <configuration>            <skipTests>true</skipTests>          < /configuration>  </plugin>

Ref: 74868680

Git package Error: Maven build prompt: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.