Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Imposible to install plug-ins with P2 director application
Imposible to install plug-ins with P2 director application [message #731825] Mon, 03 October 2011 08:49 Go to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
Hi,

I have a product and I want to install different external features using the p2 director application but it doesn't work.

With this code:
/home/hudson/moskitt-galileo-dev/build/org.eclipse.releng.basebuilder/eclipse \
-application org.eclipse.equinox.p2.director \
-repository http://download.moskitt.org/moskitt/mdt.storage/updates-1.3.4 \
-installIU es.cv.gvcase.features.mdt.common.storage.feature.group \
-destination moskitt-1.3.7.v201109160830 \
-bundlepool moskitt-1.3.7.v201109160830

I obtain this error:
Installing es.cv.gvcase.features.mdt.common.storage.feature.group 0.9.3.201104261240.
An error occurred while installing the items
session context was:(profile=profile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]es.cv.gvcase.features.mdt.common.storage.feature.jar 0.9.3.201104261240, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallFeatureAction).
Error while loading manipulator.
Caused by: Application failed, log file location: /home/hudson/moskitt-galileo-dev/build/org.eclipse.releng.basebuilder/configuration/1317630776639.log


I have tried to specify the profile option:
/home/hudson/moskitt-galileo-dev/build/org.eclipse.releng.basebuilder/eclipse \
-application org.eclipse.equinox.p2.director \
-repository http://download.moskitt.org/moskitt/mdt.storage/updates-1.3.4 \
-installIU es.cv.gvcase.features.mdt.common.storage.feature.group \
-destination moskitt-1.3.7.v201109160830 \
-bundlepool moskitt-1.3.7.v201109160830
-profile SDKProfile

and the error is different:
Installing es.cv.gvcase.features.mdt.common.storage.feature.group 0.9.3.201104261240.
Cannot complete the install because one or more required items could not be found.
Software being installed: Artifacts storage for MOSKitt 0.9.3.201104261240 (es.cv.gvcase.features.mdt.common.storage.feature.group 0.9.3.201104261240)
Missing requirement: gvCASE mdt common elements Storage 0.9.3.201104261240 (es.cv.gvcase.mdt.common.storage 0.9.3.201104261240) requires 'bundle org.eclipse.ui 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Artifacts storage for MOSKitt 0.9.3.201104261240 (es.cv.gvcase.features.mdt.common.storage.feature.group 0.9.3.201104261240)
To: es.cv.gvcase.mdt.common.storage [0.9.3.201104261240]
Application failed, log file location: /home/hudson/moskitt-galileo-dev/build/org.eclipse.releng.basebuilder/configuration/1317631489134.log


Missing requirement is not correct because "org.eclipse.ui" plug-in is into product.

Any idea ?¿?

Thanks in advance
Re: Imposible to install plug-ins with P2 director application [message #731827 is a reply to message #731825] Mon, 03 October 2011 08:53 Go to previous messageGo to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
Running the product and installing the same feature with the "Install New Software" option it works fine.

I'm using Eclipse Galileo 3.5.0 as builder.
Re: Imposible to install plug-ins with P2 director application [message #735982 is a reply to message #731827] Thu, 13 October 2011 09:40 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: September 2011
Junior Member
Hi,

At the beginning, i had the same troubles. The installation via the GUI fetches all prerequistes if configured. You will get the same error, if you uncheck "Contact all update sites during install to find required software".

So on the command line, you need to add the required features too, if not installed.

Re: Imposible to install plug-ins with P2 director application [message #735992 is a reply to message #735982] Thu, 13 October 2011 10:04 Go to previous messageGo to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
I think this can't be the problem because as you can see in the error
...
Missing requirement: gvCASE mdt common elements Storage 0.9.3.201104261240 (es.cv.gvcase.mdt.common.storage 0.9.3.201104261240) requires 'bundle org.eclipse.ui 0.0.0' but it could not be found
...
refers that (org.eclipse.ui) can't be found but it is into RCP !!!


Moreover, to verify that don't exist dependencies to other plug-ins, I have installed it via GUI with the "contact all update sites during install to find required software" unchecked and the feature has been installed without problems.

Thanks a lot.

Best regards
Re: Imposible to install plug-ins with P2 director application [message #752435 is a reply to message #735992] Wed, 26 October 2011 11:45 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What if you don't specify -bundlepool, and specify the full path to -destination? Keep -profile

PW


Previous Topic:p2.inf tooling ?
Next Topic:Installing plug-ins and data (DLLs)
Goto Forum:
  


Current Time: Thu Nov 27 04:37:04 GMT 2014

Powered by FUDForum. Page generated in 0.08311 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software