dmytro-sylaiev opened a new issue, #422: URL: https://github.com/apache/maven-build-cache-extension/issues/422
### Affected version 1.21 ### Bug description After I upgraded the extension to 1.2.1 I have a build failing when my project contains a test jar snapshot: > Failed to calculate checksums for cacheTestJar: org.eclipse.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.apache.hadoop:hadoop-hdfs:test-jar:tests:3.5.0-SNAPSHOT (absent): Could not find artifact org.apache.hadoop:hadoop-hdfs:test-jar:tests:3.5.0-SNAPSHOT in snap (https://repository.apache.org/content/groups/snapshots) My pom.xml: `<?xml version="1.0" encoding="UTF-8"?> <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>net.lim</groupId> <artifactId>cacheTestJar</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <hadoop.version>3.5.0-SNAPSHOT</hadoop.version> </properties> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version>${hadoop.version}</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version>${hadoop.version}</version> <classifier>tests</classifier> <type>test-jar</type> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <id>snap</id> <url>https://repository.apache.org/content/groups/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </project>` (!) Seems it's trying to download the test-jar artifact with incorrect URL: >Downloading from snap: https://repository.apache.org/content/groups/snapshots/org/apache/hadoop/hadoop-hdfs/3.5.0-SNAPSHOT/hadoop-hdfs-3.5.0-SNAPSHOT-tests.test-jar It's using `.test-jar` instead of `.jar` (which is downloaded from the `snap` repo before) It can be already covered with this fix: https://github.com/apache/maven-build-cache-extension/issues/417 but the fix is not released yet so I can not confirm. Could you please verify if it is a known issue and if so, provide an ETA when the fix would be available to use? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
