Red Hat Bugzilla – Bug 809575
Add support for maven.local.mode
Last modified: 2012-07-05 19:30:08 EDT
Maven in Fedora has a special mode called maven.local.mode which does a few other changes in addition to making it work offline. See http://pkgs.fedoraproject.org/gitweb/?p=maven.git;a=blob;f=0002-Use-custom-resolver.patch;h=0be399cd9585154b39dddb9a2c0d8bdaff5fac10;hb=HEAD
Something similar should be done to tycho fullfilling the following 2 goals:
* make it resolve locally first but fetch from remote if not found locally - mvn-local call
* make it resolve locally and fail if not found - mvn-rpmbuild
Tycho upstream would also be interested in that: https://bugs.eclipse.org/bugs/show_bug.cgi?id=369002
This is implemented in 0.14.1-5.
Tycho now automatically creates a p2 repository (stored in the current directory from which mvn* is run) and automatically adds it as the first repository for consideration).
If running with mvn-rpmbuild (maven.local.mode and offline mode) then it will resolve from the automatically created repo and any other repo that is available locally.
If running mvn-local (maven.local.mode but not offline) then it will first attempt to resolve from the automatically created repo and if the bundle is not found there, it will resolve from any other specified repos (local or remote).
I will push this to f17, but for now can be tested out from rawhide.
tycho-0.14.1-5.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tycho-0.14.1-5.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
tycho-0.14.1-5.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.