p2 director headless, can't find missing dependency from other repo. [message #1041823] |
Mon, 15 April 2013 12:11  |
Eclipse User |
|
|
|
Hello There,
I am trying to install an IU using the headless p2 director.
The command looks like below:
The iu "com.netxforge.netxstudio.bare" has a dependency to a feature
which is located in different p2 repo, I can't satisfy this dependency.
(See error further below).
How do I instruct the director to fetch the dependency from another p2
repo? (In the command, I have tried specifying -artifactrepository,
-metadarepository ... but to no success).
The two (public) repo's are:
http://p2.netxforge.com/own.p2/ (Contains the iu)
http://p2.netxforge.com/site.p2/ (Contains the dependencies)
Director Cmd + Arguments ----------------8<-----------------
#!/bin/bash
../eclipse -application org.eclipse.equinox.p2.director \
repositories
http://p2.netxforge.com/own.p2/,http://p2.netxforge.com/site/p2/ \
-artifactrepository http://p2.netxforge.com/site.p2/ \
-metadatarepository http://p2.netxforge.com/site.p2/ \
-destination
/var/lib/jenkins/workspace/netxstudio.product/buckminster.output/com.netxforge.releng.product.client_1.0.0-eclipse.feature/netxstudio.bare.win32.win32.x86
\
-profile netxStudioClientProfile \
-profileProperties org.eclipse.update.install.features=true \
-installIU com.netxforge.netxstudio.bare \
-p2.os win32 -p2.ws win32 -p2.arch x86 \
-purgeHistory \
-consoleLog \
-followReferences
Error----------8<-------------
!ENTRY org.eclipse.equinox.p2.director 4 1 2013-04-15 18:03:07.410
!MESSAGE Cannot complete the install because one or more required items
could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2013-04-15 18:03:07.411
!MESSAGE Software being installed: NetXStudio Platform 0.0.0
(com.netxforge.netxstudio.bare 0.0.0)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2013-04-15 18:03:07.411
!MESSAGE Missing requirement: NetXStudio Platform 0.0.0
(com.netxforge.netxstudio.bare 0.0.0) requires
'com.google.artifacts.feature.feature.group [1.0.0.qualifier]' but it
could not be found
IU a .product iu -------------8<----------------
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="NetXStudio Platform" uid="com.netxforge.netxstudio.bare"
id="com.netxforge.netxstudio.bare.product.product"
application="com.netxforge.netxstudio.ui.application" useFeatures="true"
includeLaunchers="true">
<configIni use="default">
</configIni>
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<launcher>
<solaris/>
<win useIco="false">
<bmp/>
</win>
</launcher>
<vm>
</vm>
<plugins>
</plugins>
<features>
<feature id="com.netxforge.netxstudio.bare.product.feature"/>
<feature id="com.netxforge.netxstudio.screens.app.feature"/>
<feature id="com.google.artifacts.feature"/>
<feature id="org.eclipse.equinox.executable"/>
<feature id="org.eclipse.rcp"/>
</features>
<configurations>
<plugin id="com.netxforge.netxstudio.bare.product"
autoStart="false" startLevel="0" />
<plugin id="com.netxforge.netxstudio.ui" autoStart="false"
startLevel="1" />
</configurations>
</product>
|
|
|
|
|
|
Re: p2 director headless, can't find missing dependency from other repo. [message #1051093 is a reply to message #1041823] |
Sun, 28 April 2013 03:28  |
Eclipse User |
|
|
|
On 04/15/2013 06:11 PM, Christophe Bouhier wrote:
> Hello There,
>
> I am trying to install an IU using the headless p2 director.
> The command looks like below:
>
> The iu "com.netxforge.netxstudio.bare" has a dependency to a feature
> which is located in different p2 repo, I can't satisfy this dependency.
> (See error further below).
>
> How do I instruct the director to fetch the dependency from another p2
> repo? (In the command, I have tried specifying -artifactrepository,
> -metadarepository ... but to no success).
>
> The two (public) repo's are:
>
> http://p2.netxforge.com/own.p2/ (Contains the iu)
> http://p2.netxforge.com/site.p2/ (Contains the dependencies)
>
>
> Director Cmd + Arguments ----------------8<-----------------
>
> #!/bin/bash
> ./eclipse -application org.eclipse.equinox.p2.director \
> repositories
> http://p2.netxforge.com/own.p2/,http://p2.netxforge.com/site/p2/ \
> -artifactrepository http://p2.netxforge.com/site.p2/ \
> -metadatarepository http://p2.netxforge.com/site.p2/ \
I'm pretty sure that the command line argument is
-repository or -r
in your shell script you do not use '-' and you use repositories...
maybe that's the problem?
IIRC if you use -r you do not need -artifactrepository and
-metadatarepository
hope it helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
|
|
|
Powered by
FUDForum. Page generated in 0.05903 seconds