Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] generate target file from p2 target

Hi,

If you want the content of a .target file to be "locked", you'd better use the slicer mode rather than the planner. This would enforce your .target to list all dependencies instead of relying on dependency resolution (and its variability).
Once you have slicer, you can specify the versions so you'll be almost 100% sure about resolution being reproducible.
The target-platform-validation-plugin in tycho-extras provides some analysis of a .target file to help you identifying and fixing inconsistencies in your .target

For JBoss Tools, we have a couple of mojos to manipulate .target files and ensure more stability:
* mirror-target-to-repo: takes a .target file, make a p2 repo from it with the versions
* fix-versions-mojo: replaces 0.0.0 by the resolved versions
See https://github.com/jbosstools/jbosstools-maven-plugins/tree/master/tycho-plugins/target-platform-utils/src/main/java/org/jboss/tools/tycho/targets

HTH,

Back to the top