Build failure occurs when Java Maven project is executed.
Full text of error report:
[ERROR] Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:config (default-cli) on project spring-petclinic:
Execution default-cli of goal com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:config failed: Plugin com.microsoft.azure:azure-webapp-maven-plugin:1.12.0 or one of its dependencies could not be resolved:
Failed to collect dependencies at com.microsoft.azure:azure-webapp-maven-plugin:jar:1.12.0 -> com.microsoft.azure:azure-maven-plugin-lib:jar:1.4.0 -> com.microsoft.azure:azure-tools-common:jar:0.9.0 -> com.google.errorprone:error_prone_core:jar:2.4.0 -> com.google.errorprone:error_prone_check_api:jar:2.4.0 -> com.google.errorprone:javac:jar:9+181-r4173-1:
Failed to read artifact descriptor for com.google.errorprone:javac:jar:9+181-r4173-1: Could not transfer artifact com.google.errorprone:javac:pom:9+181-r4173-1 from/to aliyunmaven (https://maven.aliyun.com/repository/public):
Access denied to: https://maven.aliyun.com/repository/public/com/google/errorprone/javac/9+181-r4173-1/javac-9+181-r4173-1.pom -> [Help 1]
resolvent:
reach https://mvnrepository.com/ Find javac-9 + 181-r4173-1 in and download it Error Prone Javac
Download in files Javac-9 + 181-r4173-1.jar to local// Attempted to add dependency in pom.xml, invalid.
Then, execute the following command in CMD:
mvn install:install-file -DgroupId=com.google.errorprone -DartifactId=javac -Dversion=9+181-r4173-1 -Dpackaging=jar -Dfile=C:\Users\Administrator\Downloads\javac-9+181-r4173-1.jar
It can be installed normally.
reference:
https://www.freesion.com/article/74941283048/
Read More:
- Failed to read artifact descriptor for xxx:jar Missing
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- Failed to read artifact descriptor for * maven
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea
- ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- AS error: failed to find target with hash string’Google Inc.:Google APIs:21′ error solution
- “[warning] failed to retrieve plugin descriptor for caused by Maven security agent settings org.apache.maven . plugins:… “
- The jar package download of Maven project appears (could not transfer artifact. Org mybatis:mybatis )
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Solve Android studio connection dl.google.com Timeout problem
- Meven report error java.lang.NoSuchMethodError : com.google.common . base.Preconditions.checkArgument
- Google cloud disk: too many users have recently viewed or downloaded this file. Please try to access this file later. (How to Bypass Google Drive Download Limit (Quota Exceeded) Error)
- Artifact hello2:war: Error during artifact deployment.
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- javac Task Error source release 1.7 requires target release
- Failed to retrieve plugin descriptor for org.mybatis.generator :mybatis-generator
- Artifact xxx:war exploded: Error during artifact deployment. See server log for details.
- Depending on the custom component jar package, unable to read meta data for class appears after startup