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