Maven fails to get artifact


(Mark Jaffe) #1

We’ve been analyzing various projects from docker-ized SonarQube 7.6-community with varied success. Sometimes we succeed, at other times the latency between our Jenkins instance and the AWS node we’re running the analyzer on blocks the complete download of sonar-scanner-engine-shaded-7.6-all.jar from the server. I decided to store a copy of that artifact in our local Artifactory, yet when I do, I’m getting the error:

[WARNING] Failed to retrieve plugin descriptor for org.sonarsource.sonarqube:sonar-scanner-engine-shaded:7.6-all: Plugin org.sonarsource.sonarqube:sonar-scanner-engine-shaded:7.6-all or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonarsource.sonarqube:sonar-scanner-engine-shaded:jar:7.6-all

I even tried to do the same for the latest artifact at maven-central but got this error:

Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-scanner-engine-shaded/7.0/sonar-scanner-engine-shaded-7.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-scanner-engine-shaded/7.0/sonar-scanner-engine-shaded-7.0.pom (1.7 kB at 11 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonarqube/7.0/sonarqube-7.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonarqube/7.0/sonarqube-7.0.pom (51 kB at 427 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/44/parent-44.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/44/parent-44.pom (31 kB at 1.2 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-scanner-engine-shaded/7.0/sonar-scanner-engine-shaded-7.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-scanner-engine-shaded/7.0/sonar-scanner-engine-shaded-7.0.jar (23 MB at 8.7 MB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] udf-model-schema 1.1.0-SNAPSHOT .................... FAILURE [  3.688 s]
[INFO] udf-model-schema-processor ......................... SKIPPED
[INFO] udf-model-schema-core .............................. SKIPPED
[INFO] udf-model-schema-ingested .......................... SKIPPED
[INFO] udf-model-schema-verified 1.1.0-SNAPSHOT ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.830 s
[INFO] Finished at: 2019-03-07T00:31:05Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to parse plugin descriptor for org.sonarsource.sonarqube:sonar-scanner-engine-shaded:7.0 (/root/.m2/repository/org/sonarsource/sonarqube/sonar-scanner-engine-shaded/7.0/sonar-scanner-engine-shaded-7.0.jar): No plugin descriptor found at META-INF/maven/plugin.xml -> [Help 1]

I’ve made the dependency in my root-level pom:

<plugin>
	<groupId>org.sonarsource.sonarqube</groupId>
	<artifactId>sonar-scanner-engine-shaded</artifactId>
	<version>7.0</version>
	<executions>
		<execution>
			<goals>
				<goal>sonar</goal>
			</goals>
		</execution>
	</executions>
</plugin>