Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
Description
I have a dependency on org.projectlombok:lombok:jar:edge-SNAPSHOT which should come from a different repository (see Project Lombok instructions). So in my POM I have
<repositories> <repository> <id>projectlombok.org</id> <url>https://projectlombok.org/edge-releases</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>
When I do mvn dependency:go-offline it fails with
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project mdep-711: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.projectlombok:lombok:jar:edge-SNAPSHOT -> [Help 1]
I would expect go-offline to (also) download this edge-SNAPSHOT dependency, but it doesn't. I'm not yet sure what the exact failure condition is: SNAPSHOT dependency, different repository, or the combination.
Attachments
Issue Links
- duplicates
-
MDEP-680 dependency:go-offline does not use repositories from parent pom in reactor build
- Closed
- links to