You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/08/28 13:24:00 UTC

[jira] [Closed] (MDEP-820) dependency:go-offline does not download plugin dependencies

     [ https://issues.apache.org/jira/browse/MDEP-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski closed MDEP-820.
------------------------------------
    Resolution: Duplicate

> dependency:go-offline does not download plugin dependencies
> -----------------------------------------------------------
>
>                 Key: MDEP-820
>                 URL: https://issues.apache.org/jira/browse/MDEP-820
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: go-offline
>    Affects Versions: 3.3.0
>         Environment: Linux, NixOS unstable
>            Reporter: Benjamin Asbach
>            Priority: Major
>
> It seems that `go-offline` goal does not download dependencies which are declared as plugin dependency:
> e.g
> {code:xml}
> <plugin>
> <groupId>org.codehaus.gmaven</groupId>
> <artifactId>groovy-maven-plugin</artifactId>
> <version>${groovy-maven-plugin.version}</version>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-all</artifactId>
> <version>3.0.9</version>
> <type>pom</type>
> <exclusions>
> <exclusion>
> <!-- groovy-testng depends on testng 7.2.0 wich is not on maven central -->
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-testng</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> After {{org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline}} I still get:
> {code}
> [ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (set-platform-properties) on project mvnd: Execution set-platform-properties of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Plugin org.codehaus.gmaven:groovy-maven-plugin:2.1.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.groovy:groovy-all:pom:3.0.9, org.codehaus.plexus:plexus-utils:jar:1.1: Cannot access central ([https://repo.maven.apache.org/maven2]) in offline mode and the artifact org.codehaus.groovy:groovy-all:pom:3.0.9 has not been downloaded from it before. -> [Help 1]
> {code}
> h3. How to reproduce
> {code}
> git clone https://github.com/apache/maven-mvnd.git
> git checkout 0.8.0
> mvn org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline -Pnative -Dmaven.repo.local=/tmp/m2
> mvn -o verify -Pnative -Dmaven.repo.local=/tmp/m2
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)