Bug 809575 - Add support for maven.local.mode
Summary: Add support for maven.local.mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tycho
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roland Grunberg
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-03 16:49 UTC by Alexander Kurtakov
Modified: 2012-07-05 23:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-05 23:30:08 UTC
Type: Bug


Attachments (Terms of Use)

Description Alexander Kurtakov 2012-04-03 16:49:41 UTC
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

Comment 1 Krzysztof Daniel 2012-04-03 20:44:08 UTC
Tycho upstream would also be interested in that: https://bugs.eclipse.org/bugs/show_bug.cgi?id=369002

Comment 2 Roland Grunberg 2012-06-12 15:54:32 UTC
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.

Comment 3 Fedora Update System 2012-06-20 16:32:20 UTC
tycho-0.14.1-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/tycho-0.14.1-5.fc17

Comment 4 Fedora Update System 2012-06-22 08:27:46 UTC
Package tycho-0.14.1-5.fc17:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-2012-9755/tycho-0.14.1-5.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-07-05 23:30:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.