You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fabrice Bacchella (Jira)" <ji...@apache.org> on 2020/05/01 12:43:00 UTC

[jira] [Commented] (MDEP-688) dependency:go-offline does not resolve classifier

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

Fabrice Bacchella commented on MDEP-688:
----------------------------------------

Using  dependency:resolve instead of dependency:go-offline resolve this problem.

> dependency:go-offline does not resolve classifier
> -------------------------------------------------
>
>                 Key: MDEP-688
>                 URL: https://issues.apache.org/jira/browse/MDEP-688
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: go-offline
>    Affects Versions: 3.1.2
>         Environment:  mvn -V
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /opt/local/share/java/maven3
> Java version: 1.8.0_241, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre
>            Reporter: Fabrice Bacchella
>            Priority: Major
>
> I have a dependency on dojo-toolkit that says:
> {code:xml}
> <dependency>
>      <groupId>org.dojotoolkit</groupId>
>      <artifactId>dojo</artifactId>
>      <type>zip</type>
>      <version>${dojo.version}</version>
>      <classifier>distribution</classifier>
>  </dependency>
> {code}
> This is a multi-module project, and this is declared in a sub-module.
> When I try to run it, it fails with:
> {code}
> $ mvn dependency:go-offline
> ...
> [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8.zip
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project jrds-webapp: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.dojotoolkit:dojo:zip:1.10.8 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
> {code}
> When I do a simple build:
> {code}
> mvn install
> ...
> Downloading from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8-distribution.zip
> Downloaded from central: https://repo.maven.apache.org/maven2/org/dojotoolkit/dojo/1.10.8/dojo-1.10.8-distribution.zip (13 MB at 10 MB/s)
> {code}
> The URL is not the same, mvn install did resolve the good file (dojo-1.10.8-distribution.zip) where  dependency:go-offline only sees dojo-1.10.8-distribution.zip.



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