Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Error installing repository from command line using director application
Error installing repository from command line using director application [message #1034333] Fri, 05 April 2013 10:06 Go to next message
Stefano Oliveri is currently offline Stefano OliveriFriend
Messages: 4
Registered: March 2012
Junior Member
Dear all,

I'm trying to install a feature from command line:

eclipse.exe -nosplash -application org.eclipse.equinox.p2.director -repository file:"[PATH_TO_COMPOSITE]" -installIU [NAME_FEATURE]

I'm using both Eclipse 3.8 and 4.2.

The command fails with the following error. What is strange for me is that the same command has worked fine with previous version of Eclipse (3.6)

ENTRY org.eclipse.equinox.p2.core 4 0 2013-03-29 10:08:52.636
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: No repository found at jar:file:../p2_repositories/ NAME_FEATURE.zip!.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:393)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:675)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:165)
at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.<init>(CompositeMetadataRepository.java:105)
at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.load(CompositeMetadataRepositoryFactory.java:122)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:758)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)

Thanks in advance for any suggestion,
Stefano

[Updated on: Mon, 08 April 2013 12:38]

Report message to a moderator

Re: Error installing repository from command line using director application [message #1051088 is a reply to message #1034333] Sun, 28 April 2013 07:19 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1419
Registered: July 2009
Senior Member
On 04/05/2013 12:06 PM, Stefano Oliveri wrote:
> Dear all,
>
> I'm trying to install a feature from command line:
>
> eclipse.exe -nosplash -application org.eclipse.equinox.p2.director
> -repository file:"[PATH_TO_COMPOSITE]" -installIU [NAME_FEATURE]
>
> I'm using both Eclipse 3.8 and 4.2.
>
> The command fails with the following error. What is strange for me is
> that the same command has worked fine with previous version of Eclipse
> (3.6)
>
> ENTRY org.eclipse.equinox.p2.core 4 0 2013-03-29 10:08:52.636
> !MESSAGE Provisioning exception
> !STACK 1
> org.eclipse.equinox.p2.core.ProvisionException: No repository found at
> jar:file:../p2_repositories/ NAME_FEATURE.zip!.
> at

I don't know whether this is the case, but p2 expected an absolute path,
if I remember correctly; are you using a relative path?

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Previous Topic:Updating Eclipse E4 project fails through p2
Next Topic:p2 director headless, can't find missing dependency from other repo.
Goto Forum:
  


Current Time: Mon Dec 22 14:21:22 GMT 2014

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

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