[
https://issues.apache.org/jira/browse/MDEP-508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Leone updated MDEP-508:
----------------------------
Attachment: sample-build.zip
Here's a sample build to demonstrate the "invalid URL character" error.
Steps to reproduce
1. cd mvn-demo-parent/releng
2. mvn clean install #succeeds
3. mvn clean dependency:go-offline
4. Build fails
5. vim mvn-demo-parent/releng/pom.xml
6. Comment out <plugin> element xtend-mvn-plugin beginning at line 94
7. mvn clean dependency:go-offline
8. Build succeeds
Previously I saw an error on the console about this plug-in being misconfigured
(a property missing, I don't recall which). This is not happening anymore for
some reason. Also in my actual project, the problem only occurs if I add the
<plugin> element in the pom file for one of the eclipse plug-ins. In this
sample project, the problem occurs when the <plugin> element is placed in the
parent pom file.
> URL contains illegal character ("[") for google guava artifact from central
> repo (goal: dependency:go-offline)
> --------------------------------------------------------------------------------------------------------------
>
> Key: MDEP-508
> URL: https://issues.apache.org/jira/browse/MDEP-508
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: go-offline, resolve-plugins
> Affects Versions: 2.8
> Environment: CentOS 6.7; Tycho 0.23.0
> Reporter: Mark Leone
> Attachments: sample-build.zip
>
>
> 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
> {noformat}mvn -Dmaven.repo.local=/some/path/ -DgeneratePom=true clean
> install{noformat}
> to create the artifacts, and that build succeeds. Then when I run
> {noformat}mvn -Dmaven.repo.local=/some/path/ -o clean install{noformat}
> 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
> {noformat}mvn -Dmaven.repo.local=/some/path/ dependency:go-offline{noformat}
> to make it download all the artifacts it needs for the build, but it fails
> with this message:
> {noformat}[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{noformat}
> 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)