eclipse - Maven offline build fails when it encouners google guava url with invalid character -


i need make tycho-maven build work in offline mode, can deploy environments no internet connection , let people run build downloaded artifacts third party code app depends on. product being built eclipse rcp product, using org.eclipse.tycho:target-platform-configuration plug-in load dependencies rcp target file.

first run mvn -dmaven.repo.local=/some/path/ -dgeneratepom=true clean install create artifacts, , build succeeds. when run mvn -dmaven.repo.local=/some/path/ -o clean install fails because it's running in offline mode , there no local cache available http://download.eclipse.org/tools/cdt/releases/8.6

so run mvn -dmaven.repo.local=/some/path/ dependency:go-offline make download artifacts needs build, fails message:

[error] failed execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project : nested: 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 @ 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

index 60 "[" character in version range specifier guava jar. have no idea url gets created , why it's not url-encoded. nice dependency:go-offline goal complete execution, don't think it's source of problem.

the reason when run goal, see in output

[info] adding repository http://download.eclipse.org/tools/cdt/releases/8.6 [info] fetching p2.index http://download.eclipse.org/tools/cdt/releases/8.6/r/ (0b @ 0b/s)

i don't know why downloads 0 bytes, assume why can't find cache of cdt bundles when try offline build.

if has idea how work around failure, or other approach make offline build work, helpful.

i created maven bug report in issue tracker.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -