[ 
https://issues.apache.org/jira/browse/MDEP-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154448#comment-17154448
 ] 

Piotr Zygielo commented on MDEP-711:
------------------------------------

Sounds like duplicate of MDEP-680

> go-offline fails to download SNAPSHOT from other repository
> -----------------------------------------------------------
>
>                 Key: MDEP-711
>                 URL: https://issues.apache.org/jira/browse/MDEP-711
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: go-offline
>            Reporter: Maarten Mulders
>            Priority: Minor
>
> I have a dependency on _org.projectlombok:lombok:jar:edge-SNAPSHOT_ which 
> should come from a different repository (see [Project Lombok 
> instructions|https://projectlombok.org/download-edge]). So in my POM I have
> {code:xml}
> <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>
> {code}
> When I do {{mvn dependency:go-offline}} it fails with
> {quote}[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]{quote}
> 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.
> I'll attach a reproducer soon.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to