You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Candice Guo (Jira)" <ji...@apache.org> on 2020/06/23 20:09:00 UTC
[jira] [Comment Edited] (MDEP-689) Dependency filtering are ignored
in go-offline
[ https://issues.apache.org/jira/browse/MDEP-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143255#comment-17143255 ]
Candice Guo edited comment on MDEP-689 at 6/23/20, 8:08 PM:
------------------------------------------------------------
[~pzygielo] The behavior I saw is quite strange. Maven is able to download things based on the url of repository to /.m2/repository folder but it will then throw me error saying:
{{Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project XYZ: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find com.hortonworks.shc:shc-core:jar:1.1.0.2.6.5.3008-11 in [https://repo.maven.apache.org/maven2] was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. }}
Does it mean maven still trying to download something while it's already being cached?
was (Author: zzgzy):
[~pzygielo] The behavior I saw is quite strange. Maven is able to download things to the defined repo to /.m2/repository folder but it will then throw me error saying:
{{Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project XYZ: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find com.hortonworks.shc:shc-core:jar:1.1.0.2.6.5.3008-11 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. }}
Does it mean maven still trying to download something while it's already being cached?
> Dependency filtering are ignored in go-offline
> ----------------------------------------------
>
> Key: MDEP-689
> URL: https://issues.apache.org/jira/browse/MDEP-689
> 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
> Default locale: fr_FR, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.4", arch: "x86_64", family: "mac"
> Reporter: Fabrice Bacchella
> Priority: Major
>
> I'm using a multi-modules project.
> I tried as a work around of bug MDEP-688 to tells go-offline to ignore a broken dependency being:
> {code:xml}
> <dependency>
> <groupId>org.dojotoolkit</groupId>
> <artifactId>dojo</artifactId>
> <type>zip</type>
> <version>1.10.8</version>
> <classifier>distribution</classifier>
> </dependency>
> {code}
> . But whatever I tried, my filter are ignored:
> {code:java}
> mvn -B dependency:go-offline -Psonar,versions -Dmaven.repo.local=/tmp/m2 -DexcludeGroupIds=org.dojotoolkit -DexcludeClassifiers=distribution -DexcludeArtifactIds=org.dojotoolkit:dojo:zip:1.10.8,dojo -DexcludeTypes=zip -Dtype=jar,war,pom -X
> ...
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline' with basic configurator -->
> [DEBUG] (f) appendOutput = false
> [DEBUG] (f) excludeArtifactIds = org.dojotoolkit:dojo:zip:1.10.8,dojo
> [DEBUG] (f) excludeClassifiers = distribution
> [DEBUG] (f) excludeGroupIds = org.dojotoolkit
> [DEBUG] (f) excludeReactor = true
> [DEBUG] (f) excludeTransitive = false
> [DEBUG] (f) excludeTypes = zip
> [DEBUG] (s) markersDirectory = .../jrds-webapp/target/dependency-maven-plugin-markers
> [DEBUG] (f) outputAbsoluteArtifactFilename = false
> [DEBUG] (f) overWriteIfNewer = true
> [DEBUG] (f) overWriteReleases = false
> [DEBUG] (f) overWriteSnapshots = false
> [DEBUG] (s) prependGroupId = false
> [DEBUG] (f) project = MavenProject: fr.jrds:jrds-webapp:2020.1 @ /Users/fa4/Devl/jrds/jrds-webapp/pom.xml
> ...
> [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}
> So I tried everything to prevent the failing artifact to be resolved, nothing succeeded.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)