Skip to main content



      Home
Home » Eclipse Projects » P2 » Headless build fails, when building the product with 'p2.gathering=true'(Headless build fails, when building the product with 'p2.gathering=true')
Headless build fails, when building the product with 'p2.gathering=true' [message #1062469] Fri, 07 June 2013 16:57 Go to next message
Eclipse UserFriend
Hello,

We are trying to add capability of updating some third party bundles from our RCP application. Third party bundles update functionality is implemented using equinox p2 library.

I am able to run our update action without any problem, when running RCP application from Eclipse IDE and by enabling 'Support software installation in the launched application' run configuration property.

I have been trying to use p2 operations from stand alone application. For that purpose I have been trying to produce properly installed fully p2 enabled product by adding "p2.gathering=true" to our build.properties file. My problem starts from this point. The headless build fails on 'run p2 director' step:

[java] runDirector:
[java] [p2.director] Installing myId 1.0.0.201306071334.
[java] [p2.director] An error occurred while collecting items to be installed
[java] [p2.director] session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
[java] [p2.director] No repository found containing: osgi.bundle,com.ibm.icu,4.4.2.v20110823
[java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.ant.core,3.2.302.v20120110-1739
[java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.contenttype,3.4.100.v20110423-0524
[java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.expressions,3.4.300.v20110228
[java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.filesystem,1.3.100.v20110423-0524
...

I have also attached the .log file.

Please, help me to understand the reason of the problem.

Thanks,
Aleksandr


  • Attachment: .log
    (Size: 51.25KB, Downloaded 285 times)
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1063174 is a reply to message #1062469] Wed, 12 June 2013 10:17 Go to previous messageGo to next message
Eclipse UserFriend
On 06/07/2013 06:26 PM, Aleksandr Asatryan wrote:
> Hello,
>
> We are trying to add capability of updating some third party bundles from our RCP application. Third party bundles update functionality is implemented using equinox p2 library.
>
> I am able to run our update action without any problem, when running RCP application from Eclipse IDE and by enabling 'Support software installation in the launched application' run configuration property.
>
> I have been trying to use p2 operations from stand alone application. For that purpose I have been trying to produce properly installed fully p2 enabled product by adding "p2.gathering=true" to our build.properties file. My problem starts from this point. The headless build fails on 'run p2 director' step:
>
> [java] runDirector:
> [java] [p2.director] Installing myId 1.0.0.201306071334.
> [java] [p2.director] An error occurred while collecting items to be installed
> [java] [p2.director] session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
> [java] [p2.director] No repository found containing: osgi.bundle,com.ibm.icu,4.4.2.v20110823
> [java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.ant.core,3.2.302.v20120110-1739
> [java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.contenttype,3.4.100.v20110423-0524
> [java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.expressions,3.4.300.v20110228
> [java] [p2.director] No repository found containing: osgi.bundle,org.eclipse.core.filesystem,1.3.100.v20110423-0524

What defines your target platform? Do you feed p2 repos into
p2.repo2runnable?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1063318 is a reply to message #1063174] Wed, 12 June 2013 20:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi Paul,

Thanks for your interest to help me.

My target platform is defined by Eclipse Product Configuration. I have PDE build script which produces the product using mentioned configuration.
I have attached major parts of build.properties and PDE build script.
Please, let me know if you need more details.

I would like just to remind that my goal is to produce p2 enabled product. The product will not be self update-able, it will just use p2 to update a third party bundle.

Thanks,
Aleksandr
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1063835 is a reply to message #1063318] Fri, 14 June 2013 08:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

What does your build.properties look like? Is it in the same directory
as your .product file?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1063883 is a reply to message #1063835] Fri, 14 June 2013 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Paul,

In my previous reply I attached build.properties file that headless build uses. Please see my previous reply attachments. This build.properties file contains all the information needed to build, package and export the product.

*.product file is located in the 'main rcp' plug-in. 'main rcp' plug-in contains its own build.properties file as well (I have attached it with this email reply). This build.properties file contains all the information needed to build, package and export the plug-in.

Thanks,
Aleksandr
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1064072 is a reply to message #1063883] Mon, 17 June 2013 09:38 Go to previous messageGo to next message
Eclipse UserFriend
On 06/14/2013 01:31 PM, Aleksandr Asatryan wrote:
> Paul,
>
> In my previous reply I attached build.properties file that headless build uses. Please see my previous reply attachments. This build.properties file contains all the information needed to build, package and export the product.
>
> *.product file is located in the 'main rcp' plug-in. 'main rcp' plug-in contains its own build.properties file as well (I have attached it with this email reply). This build.properties file contains all the information needed to build, package and export the plug-in.

OK, found them. According to the docs, there are a number of properties
that should be used, but you only set the p2.gathering property. See
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_p2_productbuilds.htm&cp=4_2_2_2

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm
Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1064167 is a reply to message #1064072] Mon, 17 June 2013 20:05 Go to previous messageGo to next message
Eclipse UserFriend
Hi Paul,

I have been observing these two documents:
1. http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_p2_productbuilds.htm&cp=4_2_2_2
2. pweclipse.blogspot.com/2010/09/simple-rcp-product-build.html (removed http:// prefix due to forum restrictions)

I think second nice document was posted by you:) Am I right?

So, summarizing information I got, I think I need to add the following properties to my PDE build process:
repoBaseLocation=${base}/repoBase
transformedRepoLocation=${base}/transformedRepos
eclipsePlatformRepo=http://download.eclipse.org/eclipse/updates/3.7

But after adding those properties, PDE build fails saying:
.../repoBase does not exist
Should repoBase folder be generated automatically?

If this is not the correct property list, can you please help and tell me the list of minimum required properties that I need to pass with "p2.gathering=true" to my PDE build?

Regards,
Aleksandr



[Updated on: Mon, 17 June 2013 20:06] by Moderator

Re: Headless build fails, when building the product with 'p2.gathering=true' [message #1064251 is a reply to message #1064167] Tue, 18 June 2013 08:13 Go to previous message
Eclipse UserFriend
On 06/17/2013 08:05 PM, Aleksandr Asatryan wrote:
> Hi Paul,
>
> I have been observing these two documents:
> 1.
> http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Ftasks%2Fpde_p2_productbuilds.htm&cp=4_2_2_2
>
> 2. pweclipse.blogspot.com/2010/09/simple-rcp-product-build.html
>
> I think second nice document was posted by you:) Am I right?
>
> So, summarizing information I got, I think I need to add the following
> properties to my PDE build process:
> repoBaseLocation=${base}/repoBase
> transformedRepoLocation=${base}/transformedRepos
> eclipsePlatformRepo=http://download.eclipse.org/eclipse/updates/3.7
>
>


You then need an extra step in your customTargets.xml. You can list the
features you want (as in my example) or simply mirror the whole repo
depending on what you build. Basically, you're replacing baseLocation
as the source of what you build against (it's the new target platform):


<target name="preProcessRepos">
<p2.mirror source="${eclipsePlatformRepo}"
destination="${repoBaseLocation}/launchers">
<iu id="org.eclipse.equinox.executable.feature.group" version=""/>
<iu id="org.eclipse.rcp.feature.group" version=""/>
</p2.mirror>
</target>


Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm
Previous Topic:Any official documentation for update sites?
Next Topic:Silent Update the next time the application is Restarted
Goto Forum:
  


Current Time: Wed Jun 18 06:49:06 EDT 2025

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

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

Back to the top