CanniMainsys opened a new issue, #517:
URL: https://github.com/apache/maven-build-cache-extension/issues/517
### Affected version
1.2.3
### Bug description
Step to reproduce:
**- Module A with**
```
...
<groupId>com.test</groupId>
<artifactId>my-services</artifactId>
<packaging>ejb</packaging>
...
```
**- Module B with a dependency to the module A:**
```
...
<dependency>
<groupId>com.test</groupId>
<artifactId>my-services</artifactId>
<type>ejb</type>
</dependency>
...
```
**- mvn install moduleB after moduleA with cache enabled**
**Exception:**
`[ERROR] Failed to calculate checksums for moduleB:
org.eclipse.aether.resolution.ArtifactResolutionException: The following
artifacts could not be resolved: com.test:my-services:ejb:5.3.0-SNAPSHOT
(absent)
`
It seems the build-cache is trying to get "ejb" extension instead "jar":
`Downloading from nexus:
http://nexus:8081/repository/maven-test/com/test/my-services/5.3.0-SNAPSHOT/my-services-5.3.0-SNAPSHOT.ejb`
**- stacktrace**
```
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException:
com.test:my-services:ejb:5.3.0-SNAPSHOT was not found in
http://nexus:8081/repository/maven-test/ during a previous attempt. This
failure was cached in the local repository and resolution is not reattempted
until the update interval of nexus has elapsed or updates are forced
at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException
(DefaultUpdateCheckManager.java:225)
at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact
(DefaultUpdateCheckManager.java:201)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads
(DefaultArtifactResolver.java:586)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads
(DefaultArtifactResolver.java:525)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve
(DefaultArtifactResolver.java:449)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts
(DefaultArtifactResolver.java:261)
at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact
(DefaultArtifactResolver.java:243)
at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact
(DefaultRepositorySystem.java:278)
at
org.apache.maven.buildcache.checksum.MavenProjectInput.resolveArtifact
(MavenProjectInput.java:857)
at
org.apache.maven.buildcache.checksum.MavenProjectInput.getMutableDependenciesHashes
(MavenProjectInput.java:808)
at
org.apache.maven.buildcache.checksum.MavenProjectInput.getMutableDependencies
(MavenProjectInput.java:639)
at
org.apache.maven.buildcache.checksum.MavenProjectInput.calculateChecksum
(MavenProjectInput.java:190)
```
--
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]