tag:blogger.com,1999:blog-25095519.post3995775426090269192..comments2023-06-11T08:59:53.206-05:00Comments on Andrew Niefer: Building p2 RCP products in Eclipse 3.5M6Anonymoushttp://www.blogger.com/profile/10918930759740557341noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-25095519.post-56894753939462662252009-11-24T16:18:27.707-05:002009-11-24T16:18:27.707-05:00Gunnar,
A product build with p2.gathering=true sho...Gunnar,<br />A product build with p2.gathering=true should produce for each configuration an archive which is the result of calling the director to install the product on that platform. You would not expect to see the binary folder in these installs (although there may be a eclipse\p2\org.eclipse.equinox.p2.core\cache/binary folder). <br /><br />If you set the <b>p2.metadata.repo</b> and <b>p2.artifact.repo</b> properties, build will mirror to that location all the metadata and artifacts for the product. You would need to zip up that repo yourself.<br /><br />In contrast, a feature build will produce a single p2 repo for all platforms (comparable to setting groupConfiguration & outputUpdateJars in older builds).<br /><br />A build is considered a <i>product build</i> if you define the <b>product</b> property, and a <i>feature build</i> otherwise.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-81233367741894169322009-11-23T06:45:43.925-05:002009-11-23T06:45:43.925-05:00Andrew, I have a feature-product build running whi...Andrew, I have a feature-product build running which produces a nice ZIP containing the branded launcher and the produced stuff.<br /><br />When I enable p2.gathering the resulting zip file suddenly also contains a "binary" folder with the launcher artifacts. It looks like the resulting zip now also is a p2 repository. <br /><br />Is it possible to produce a zip file which really is just the installed product and not a p2 repository itself?<br /><br />For example, what I'd like to produce in my builds is:<br /><br />1. One zip file containing features, plug-ins, fragments and launchers for all supported platforms<br /><br />2. One zip per platform that does not contain things like a "binary" folder<br /><br /><br />Does PDE Build supports this out of the box or do I have to tweak the build files?Gunnarhttps://www.blogger.com/profile/08579442993356201374noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-32532685773715830632009-08-18T15:54:49.784-05:002009-08-18T15:54:49.784-05:00Ralph, none of these warnings are things that you ...Ralph, none of these warnings are things that you need to worry about.<br /><br />1) <b>[eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied. </b><br />This just means that there were some bundles in the target that did not resolve for some reason. This is only a problem if you are actually trying to include one of those bundles in your product. Most common is the "Another singleton version selected". When there is more than one version of a singleton bundle, only one will be able to resolve. The JavaSE-1.6 warnings might be because only a Java 1.5 boot classpath was defined in the build.properties.<br /><br />2) <b>Discouraged Access warnings. </b> <br />This is because p2 has not yet declared any official API. Everything is provisional and is marked internal. The warnings help remind you that the API might change before it is official.<br /><br />3) <b>[p2.mirror] Unable to satisfy dependency from org.eclipse.equinox.executable.feature.group to org.eclipse.equinox.launcher.gtk.solaris.sparc </b><br />This would be because you only ran the build for a few platforms, so there won't be metadata for some of the launcher fragments. The executable feature is only mirrored here because of a quirk of pde.build and won't actually be required by your product. Your product will include branded versions instead for those platforms you built for.<br /><br />4) <b>"java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin" exceptions</b><br />This is probably <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=285888" rel="nofollow">bug 285888</a>. This won't actually hurt your install because the director is a headless application.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-25889271700674568862009-08-12T16:53:51.172-05:002009-08-12T16:53:51.172-05:00Hi Andrew,
thanks a lot for the example code, it&...Hi Andrew,<br /><br />thanks a lot for the example code, it's extremely cool to build this from the spot on my win32 VM!<br /><br />I get some warnings though (I highlighted them as three different sections in the document):<br />http://pastie.org/pastes/581949<br /><br />I'm not sure if I can ignore them, from the first look I cannot see any obvious reasons for them. Do you know right away what's wrong or shall I investigate this?<br /><br />I also tried this on OS X, building for "macosx, cocoa, x86". The build is successful, but I get error messages about "java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin" in the compile log and in the configuration log file when I start the built application...<br /><br />Build log:<br />http://pastie.org/581959<br /><br />Any ideas about this?<br /><br />Greetings,<br />RalfRalf Eberthttps://www.blogger.com/profile/12850548360347064735noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-19238633862488633022009-08-06T14:03:26.758-05:002009-08-06T14:03:26.758-05:00I expect the problem is related to the server bein...I expect the problem is related to the server being on port 5000 but I don't know much about the transport layer here, I don't have any suggestions for you. I assume your repository URLs are something like http://localhost:5000/repo.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-80912789314961671522009-08-04T12:13:01.421-05:002009-08-04T12:13:01.421-05:00Hello,
I'm trying this example to run http://...Hello,<br /><br />I'm trying this example to run http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application#Headless_Updating_on_Startup<br /><br />and it's running, but update is not working..I'm getting following errors<br /><br />osgi> LOAD REPOS<br />GET UPDATE LIST<br />2<br />[org.eclipse.equinox.p2.examples.rcp.prestartupdate.product 1.0.0.200908041846,<br />org.eclipse.equinox.p2.examples.rcp.prestartupdate 1.0.0.200908041846]<br />[org.eclipse.equinox.p2.examples.rcp.prestartupdate.product 1.0.0.200908041848,<br />org.eclipse.equinox.p2.examples.rcp.prestartupdate 1.0.0.200908041848]<br />Status OK: org.eclipse.core.runtime code=0 OK null<br />Status ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred while colle<br />cting items to be installed null children=[Status ERROR: org.eclipse.equinox.p2.<br />engine code=0 session context was:(profile=profile, phase=org.eclipse.equinox.in<br />ternal.provisional.p2.engine.phases.Collect, operand=, action=). null Status ERR<br />OR: org.eclipse.equinox.p2.artifact.repository code=0 No repository found contai<br />ning: osgi.bundle,org.eclipse.equinox.p2.examples.rcp.prestartupdate,1.0.0.20090<br />8041848 null Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 No<br />repository found containing: binary,org.eclipse.equinox.p2.examples.rcp.prestart<br />update.product_root.win32.win32.x86,1.0.0.200908041848 null]<br /><br />As you can see, there is an Update, but its not downloading...<br />I'm using Apache @ localhost:5000 , I heard about an issue with a port rather then 80, but it should be fixed by now ..<br />My Repository is looking like this:<br /><br />repo<br /> -- binary<br /> -- plugins<br /> -- artifact.xml<br /> -- content.xml<br /><br />Thank youDaniel Seidlerhttps://www.blogger.com/profile/18158928308158405466noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-53905369764304687262009-06-13T03:20:12.090-05:002009-06-13T03:20:12.090-05:00Thanks, great. It works now.Thanks, great. It works now.Anonymoushttps://www.blogger.com/profile/00034116782690900048noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-47312843469166223072009-06-12T12:26:36.563-05:002009-06-12T12:26:36.563-05:00JesperE, A new bundle "org.eclipse.equinox.p2...JesperE, A new bundle "org.eclipse.equinox.p2.repository" was added to p2 in 3.5M7. The cloud.product file in the example was out of date. On the dependencies tab of the product editor, click "Add Required Plug-ins" to get the repository bundle added to the product.<br /><br />I have updated the version in CVS.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-33944007889203341492009-06-12T05:51:17.529-05:002009-06-12T05:51:17.529-05:00I tried building according to the instructions, us...I tried building according to the instructions, using the Build Cloud Example.launch, and Eclipse SDK 3.5RC3, but get the following errors. What am I doing wrong?<br /><br /> [echo] !ENTRY org.eclipse.equinox.p2.director 4 1 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE Cannot complete the install because one or more required items could not be found.<br /> [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE Software being installed: RCP Mail Example (Cloud Update) 1.0.0.200906121243 (org.eclipse.equinox.p2.examples.rcp.cloud.product 1.0.0.200906121243)<br /> [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE Missing requirement: Equinox Provisioning Update Checker 1.1.0.v20090520-1905 (org.eclipse.equinox.p2.updatechecker 1.1.0.v20090520-1905) requires 'package org.eclipse.equinox.internal.provisional.p2.repository 0.0.0' but it could not be found<br /> [echo] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE Cannot satisfy dependency:<br /> [echo] !SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE From: RCP Mail Example (Cloud Update) 1.0.0.200906121243 (org.eclipse.equinox.p2.examples.rcp.cloud.product 1.0.0.200906121243)<br /> [echo] !SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-06-12 12:44:21.641<br /> [echo] !MESSAGE To: org.eclipse.equinox.p2.updatechecker [1.1.0.v20090520-1905]Anonymoushttps://www.blogger.com/profile/00034116782690900048noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-12003365007862904282009-04-10T06:58:00.000-05:002009-04-10T06:58:00.000-05:00Yes, 'name' is optional. I find this parameter whe...Yes, 'name' is optional. I find this parameter when looking through sources. But no comments. Only facts. :(Victorhttps://www.blogger.com/profile/05433103516698944504noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-37726825069448300422009-04-09T08:26:00.000-05:002009-04-09T08:26:00.000-05:00Victor, I haven't tried re-running the example, bu...Victor, I haven't tried re-running the example, but I don't see any change in your version that should make a difference.<BR/><BR/>The order of the parameters does not matter. Both 'name' and 'enabled' are optional. (Default value of enabled is true).Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-68165415721175610692009-04-09T01:53:00.000-05:002009-04-09T01:53:00.000-05:00Remarks about p2.infp2.inf contained in example pr...Remarks about p2.inf<BR/><BR/>p2.inf contained in example projects don't work for me in 3.5 M6.<BR/><BR/>I spent some time and I have find working variant: <BR/><BR/>instructions.configure=addRepository(location:http${#58}//www.stepanych.th/update/,type:0,name:TIMMY,enabled:true);addRepository(location:http${#58}//www.stepanych.th/update/,type:1,name:TIMMY,enabled:true);Victorhttps://www.blogger.com/profile/05433103516698944504noreply@blogger.com