You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Mulders (Jira)" <ji...@apache.org> on 2020/07/09 11:26:00 UTC
[jira] [Updated] (MDEP-711) go-offline fails to download SNAPSHOT
from other repository
[ https://issues.apache.org/jira/browse/MDEP-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Mulders updated MDEP-711:
---------------------------------
Description:
I have a dependency on _org.projectlombok:lombok:jar:edge-SNAPSHOT_ which should come from a different repository (see [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.
was:
I have a dependency on _org.projectlombok:lombok:jar:edge-SNAPSHOT_ which should come from a different repository (see [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 scheme-parser: *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.
> 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 [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)