Reputation: 3284
I have installed a feature group in eclipse, i used the installUI to do this.
This worked fine for the first time. Now if the plugin in that feature group has been updated/modified or if a plugin is added then the changes is not reflected if i run the same installIU command again! Using the UI in eclipse however works!!
Any idea how to achieve this through command line?
Upvotes: 2
Views: 2729
Reputation: 10646
Its not possible to update using the P2 director. If you want to update your feature, you would have to first uninstall it, then install it again, but this time intalling the latest version.
Example, Installing:
eclipse -application org.eclipse.equinox.p2.director -noSplash
-repository http://download.eclipse.org/releases/juno
-installIUs org.eclipse.egit.feature.group,org.eclipse.jgit.feature.group,
org.eclipse.emf.sdk.feature.group,org.eclipse.mylyn_feature.feature.group
Example, uninstalling:
eclipse -application org.eclipse.equinox.p2.director -nosplash
-uninstallIU org.eclipse.egit.feature.group,org.eclipse.jgit.feature.group,
org.eclipse.emf.sdk.feature.group,org.eclipse.mylyn_feature.feature.group
An example of WHY p2 will not update via command line is listed below:
Installation vs Update: Although only an isssue when using the lower-level p2 Core APIs, specifying an IU to install (as a root IU) does not automatically update any existing versions of that IU. Although the p2 planner will consider replacing a non-root IU to satisfy a dependency, p2 will never update a root IU. Updating a root IU requires explicitly uninstalling the old IU and installing the new version. Note that the p2 Install New Software / Update Software wizard does detect this situation and transforms installations into updates.
References: Eclipse forum, Vogella blog, Paul Websters blog, Eclipse help, Equinox/p2/FAQ
Upvotes: 3