tag:blogger.com,1999:blog-3460102793186140898.post5436361200035286546..comments2024-03-09T08:47:01.548+01:00Comments on Code & Me: Tycho build 6: Building productsChristian Ponteseggerhttp://www.blogger.com/profile/13049318779927276910noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-3460102793186140898.post-26929735441622798752014-08-21T22:38:24.977+02:002014-08-21T22:38:24.977+02:00I just checked out the example sources and build i...I just checked out the example sources and build it successfully with tycho 0.21. Seems if you have maven 3.1 or higher you have to upgrade tycho to at least 0.18.0Christian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-87397121240471160322014-06-24T10:46:25.421+02:002014-06-24T10:46:25.421+02:00I am following your tutorial, using Kepler and Tyc...I am following your tutorial, using Kepler and Tycho 0.20.<br /><br />Everything works great until Chapter 6 - Building products. I am getting the following errors:<br />[ERROR] Cannot resolve project dependencies:<br />[ERROR] Software being installed: tycho.product 1.0.0.qualifier<br />[ERROR] Missing requirement: tycho.product 1.0.0.qualifier requires 'com.example.tycho.product.feature.feature.group 0.0.0' but it could not be found<br /><br />Any ideas on what I may be doing wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-26513212462492313712013-11-11T09:51:53.899+01:002013-11-11T09:51:53.899+01:00Yes, I’m trying to install additional feature in e...Yes, I’m trying to install additional feature in eclipse with tycho build system.<br /><br />I added a product.p2.inf<br />instructions.configure=installFeature(feature:org.eclipse.help.feature.group,featureId:default,version:default);<br /><br />Unfortunately the build fails:<br /><br />An error occurred while configuring the installed items<br />session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null --> [R]sample.product 1.0.0.201211220827, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallFeatureAction).<br />Installable unit contains no artifacts: [R]sample.product 1.0.0.201211220827.<br /><br />Any help is welcome<br />Thanks in advance,<br />Maherzia<br />Anonymoushttps://www.blogger.com/profile/12890404605307689155noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-70788130799296789982013-11-07T18:19:27.398+01:002013-11-07T18:19:27.398+01:00If you want to add a new update site to your produ...If you want to add a new update site to your product, please read the tutorial and find the answer in the section: Optional: Adding p2.inf files<br />If you intend to install additional features you might do that with p2.inf files too, but I can't help you with the syntax for that.Christian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-30694920338024368372013-11-07T16:07:15.133+01:002013-11-07T16:07:15.133+01:00Hello,
I have an other question please :
I want to...Hello,<br />I have an other question please :<br />I want to install a p2 repository (a third part plugins) in my final product :<br />How can I do it ?<br />is there a way using p2.inf ?<br />Thanks in advanceAnonymoushttps://www.blogger.com/profile/12890404605307689155noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-87204340757747405412013-11-06T20:29:49.166+01:002013-11-06T20:29:49.166+01:00Thanks for sharing your answer here in the comment...Thanks for sharing your answer here in the comments. As written in the blog your file needs to be named like this: <project_name>.p2.inf. Additionally it has to be placed in the same folder as your product definition file.Christian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-53031686661984379882013-11-06T15:31:24.004+01:002013-11-06T15:31:24.004+01:00I find the answer :
The p2.inf file for a product ...I find the answer :<br />The p2.inf file for a product definition example.product needs to be called example.p2.inf<br />http://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-repository<br />Thanks again for this helpfull guideline :)<br /><br />Anonymoushttps://www.blogger.com/profile/12890404605307689155noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-86378465634841635292013-11-06T15:07:21.932+01:002013-11-06T15:07:21.932+01:00Hello,
thanks for this good guidline for tycho use...Hello,<br />thanks for this good guidline for tycho users.<br />I have some questions :<br />is there any convention on how to add p2.inf files ?<br />what do you mean exactly by in ".p2.inf".?<br />Thanks in advance<br /><br />Anonymoushttps://www.blogger.com/profile/12890404605307689155noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-30037392308219122322013-07-03T21:59:53.197+02:002013-07-03T21:59:53.197+02:00> Can tycho build multiple products ?
Yes, it ...> Can tycho build multiple products ? <br />Yes, it can. Create 2 independent product builds that work on their own. Then create a new project, convert it to maven and set packaging to pom. Then add your 2 product builds as modules to that pom. If you build it, it will build its 2 modules, which in fact are your independent product builds.<br /><br />> (I guess you tried to repost the xml snippet)<br />This will go to com.example.tycho.releng.product/pom.xml. Best download the sources, import into your workspace and give it a try. You can browse all the files and see, how thigs fit together.<br /><br />Regarding offline mode:<br />This will work if you have all your maven definitions and plugin dependencies available on your local machine (or network). As a general hint I would suggest to try to run this setup online first and then try to run it in offline mode.Christian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-71167926904033447612013-07-03T10:33:39.725+02:002013-07-03T10:33:39.725+02:00Hi,
First of all, I thank you for this tuto which...Hi, <br />First of all, I thank you for this tuto which helped me to begin whith Tycho. <br /><br />However , I still have some questions.<br /><br />Can tycho build multiple products ? <br /> Eg : I have 2 products , each has 1 feature which has 1 plugin. <br />and I dont understand where I have to write : <br /><br /> <br /> <br /> <br /> org.eclipse.tycho <br /> tycho-p2-director-plugin <br /> ${tycho-version} <br /> <br /> <br /> <br /> materialize-products <br /> <br /> materialize-products <br /> <br /> <br /> <br /> <br /> archive-products <br /> <br /> archive-products <br /> <br /> <br /> <br /> <br /> <br /> <br /><br /><br />Moreover, I'm using tycho 0.18 with Maven 3.0.3 and eclipse Indigo 3.xx with offline mode ( can"t access web to download packages). But I have stored a lot of them which is not a problem to run my project. I just wanted to highlight that I need answers related to that "problem". :)<br /><br />Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-89357185819087779602013-06-06T10:42:25.572+02:002013-06-06T10:42:25.572+02:00Thanks for the hints about start levels. This prob...Thanks for the hints about start levels. This probably saved me some hours...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-15646856004988290462013-05-01T20:42:54.479+02:002013-05-01T20:42:54.479+02:00Thanks for sharing this solution. I was not aware ...Thanks for sharing this solution. I was not aware of this problem either.Christian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-352799696754957682013-04-30T17:48:21.921+02:002013-04-30T17:48:21.921+02:00Ok, I found the error: product_id in product defin...Ok, I found the error: product_id in product definition file was the same as the artifactid. <br />Greets, JensAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-41919911727653767822013-04-30T00:50:03.898+02:002013-04-30T00:50:03.898+02:00Hi Christian,
the best Tycho-tutorial I found, th...Hi Christian,<br /><br />the best Tycho-tutorial I found, thanks for writing it!<br /><br />I encountered an issue when running the build after adding the product. Tycho is complaining about "Duplicate Reactor IUs":<br /><br />de.jmware.myproject.product 1.0.0 => [/sourcefolder/de.jmware.myproject.product, /sourcefolder/de.jmware.myproject.parent.product]<br /><br />The second project is the one I added following your tutorial (Section 9 "Building Products").<br /><br />I googled around but didn't found really helpful comments on this error. Seems that the Reactor UIs are built on artifactid and version, but these two are different in the projects mentioned above.<br /><br />Do you know how to solve this issue?<br /><br />Thanks in advance, Jens<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-59730224639182476522013-01-09T20:38:20.368+01:002013-01-09T20:38:20.368+01:00Before I reade your comment I was completely unawa...Before I reade your comment I was completely unaware of this file. You might want to ask this question on the tycho users mailing listChristian Ponteseggerhttps://www.blogger.com/profile/13049318779927276910noreply@blogger.comtag:blogger.com,1999:blog-3460102793186140898.post-71924092115926891172013-01-08T18:50:20.344+01:002013-01-08T18:50:20.344+01:00I just switched to building my Eclipse product usi...I just switched to building my Eclipse product using Tycho and this is a really great tutorial, thanks for writing it.<br /><br />When I build my product, .eclipseproduct is generated. How can customize this file to my product? Right now, all I get are default value:<br /><br />name=Eclipse Platform<br />id=org.eclipse.platform<br />version=3.7.0<br /><br />In my product feature's POM I have tycho-packaing-plugin defined: http://pastebin.com/LbX1fgLG. I thought defining product would take care of that. In fact looking at .eclipseproduct file during various stages of the build I do see .eclipseproduct getting populated with my product id, but in final product it's gone.<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/10065832357793401789noreply@blogger.com