[
https://issues.apache.org/jira/browse/MNG-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946079#comment-14946079
]
Hervé Boutemy commented on MNG-5902:
------------------------------------
issue seems to come from dependency:go-offline or dependency:resolve-plugins:
moving to dependency plugin
the plugin seems to have issues with version ranges resolution: instead of
choosing versions from [10.0.1,14.0.1] version range then downloading precise
versions, it considers [10.0.1,14.0.1] as a version, which it is not...
for sure, we'd need such example with a version range somewhere to reproduce
the issue to be able to investigate more deeply
> URL contains illegal character ("[") for google guava artifact from central
> repo (goal: dependency:go-offline)
> --------------------------------------------------------------------------------------------------------------
>
> Key: MNG-5902
> URL: https://issues.apache.org/jira/browse/MNG-5902
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories, Dependencies
> Affects Versions: 3.2.3
> Environment: CentOS 6.7; Tycho 0.23.0
> Reporter: Mark Leone
>
> While running the Maven goal dependency:go-offline, the build fails while
> trying to download google guava artifacts from the central repository. The
> error message indicates an illegal character in the URL, specifically a "["
> character, which comes from the version specifier.
> First I run
> mvn -Dmaven.repo.local=/some/path/ -DgeneratePom=true clean install
> to create the artifacts, and that build succeeds. Then when I run
> mvn -Dmaven.repo.local=/some/path/ -o clean install
> it fails because it's running in offline mode and there is no local cache
> available for http://download.eclipse.org/tools/cdt/releases/8.6
> So then I run
> mvn -Dmaven.repo.local=/some/path/ dependency:go-offline
> to make it download all the artifacts it needs for the build, but it fails
> with this message:
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins
> (resolve-plugins) on project : Nested: Could not transfer artifact
> com.google.guava:guava:jar:[10.0.1,14.0.1] from/to central
> (https://repo.maven.apache.org/maven2): Illegal character in path at index
> 60:
> https://repo.maven.apache.org/maven2/com/google/guava/guava/[10.0.1,14.0.1]/guava-[10.0.1,14.0.1].jar
> The product being built is an Eclipse RCP product, using the
> org.eclipse.tycho:target-platform-configuration plug-in to load the
> dependencies from an RCP target file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)