Saturday, July 16, 2011

How to Create A Software Site from Plug-in Bundles for Eclipse Tycho Maven

As of Eclipse Tycho Maven plugin 0.12.0, it can only use "InstallationUnit" type (aka Software Site sources) from a target platform definition file. So you cannot use Features, Installation, or Directory in your target definition file.

If all the plug-ins your Eclipse Platform application requires are already in a Software Site/Update Site, you're lucky. But if not, don't despair. Gather all the plug-ins in a directory and...
(note: you may need to OSGify some files beforehand using Bnd or Eclipse PDE)

The lighting way:
If it already contains feature(s) that list the available plug-ins, just create a .target definition file and in Eclipse right click the .target and export it. Done!
If not, continue below...

The quick way:

  1. Create a Feature project, initial plug-in list is empty.
  2. Create a .target platform definition file in PDE, inside the Feature Project. Add the bundles. Activate it.
  3. Open the feature.xml, Plug-ins tab. Select all plug-ins (use "*.*" filter)
  4. Right click the Feature project, Export... as a deployable feature :-) There, you get your Software Site neatly prepared and ready for some serious Tycho action! :D

The hard way:
https://docs.sonatype.org/display/TYCHO/How+to+make+existing+OSGi+bundles+consumable+by+Tycho
;-)

To learn more about Eclipse platform programming, I highly recommend Eclipse Rich Client Platform (2nd Edition).

9 comments:

  1. CoPilot Reside might Buy Cheap RS Goldhelp produce a designed retreat more enjoyable. Together with an incredible number of Points of Interest such as restaurants, theme parks to barbeque grill, along with aSell Rs Goldvarious attractions,

    ReplyDelete
  2. Guys, do you like to play MMORPG? Guild Wars 2 is one of the most wonderful MMORPGs.I'm a big fan of Guild Wars 2 and good at farming Guild Wars 2 gold. I know a good website to update game guidance about how to farm gold. The cheap Guild Wars 2 gold is also available in that store. So, if you lack gold, you can have a try of that store. Just click the colored word which will direct you.

    ReplyDelete
  3. By that regular, Home windows windows 7 home premium activation key Vista is often a world-class villain, an object of scorn and mock, with forty two per cent of all reviewers window anytime upgrade key offering it the lowest achievable score.

    ReplyDelete
  4. In addition, they can also deliver cheap rs gold the passengers who have paid the transportation costs in different routes of the territory that controlled by Alliance runescape money in WOW.

    ReplyDelete
  5. gw2 gold even years, until they reach the required quality, the American company surprised everyone in the Penny Arcade Expo event March to announce Hearthstone: Heroes of Warcraft.www.gw2farm.com

    ReplyDelete
  6. With significant updates and visual enhancements, Project Standard 2010 Download delivers better experiences to simply be more productive and successfully complete all types of projects.
    Microsoft Visio Premium 2010 Download offers the most advanced and efficient diagramming tools for managing IT, process, quality, and compliance scenarios. With intelligent, rule-based templates such as SharePoint Workflow, BPMN, and Six Sigma, driving consistency and accuracy across your organization is easier than ever.
    Adobe Acrobat 9 Download is a platform for viewing, creating, manipulating and managing files in Adobe's PDF format.

    ReplyDelete
  7. The reply seems to be made of high quality materials, and its creators guarantee that it will be "great for the runescape 2007 gold sale holidays, with a design fard n, music taken directly from the game dubsted gun and a laser sight." On the other hand, this edition Collectors will also include a figure of 20 centimeters in memory of Johnny Gat, Saints considered the best ever. But the madness does not end here. And is that the guys at Volition have also included in the pack the mythical buy 07 rs gold "red button" able to unleash the final judgment in a matter of seconds.

    ReplyDelete
  8. If it already contains feature that list the available plug-ins, just create a .target definition file and in Eclipse right click the .target and export it
    WOW Gold Kaufen Billig
    Billig WOW Gold Kaufen

    ReplyDelete