Pitfalls with Maven/Tycho
There are few things that you need to be aware of when using Maven/Tycho for building and testing your DSL. As we said in this chapter, Tycho is a valuable plug-in that reuses most information specified in the Eclipse plugin projects so that they can be built with Maven. However, a few pieces of information must be duplicated in the pom files. Moreover, tests run from Eclipse do not always behave exactly the same way when run from the Maven build.
Versioning
Eclipse plug-ins and features have version numbers of the shape major.minor.micro.qualifier
. By default, your DSL projects will then have version 1.0.0.qualifier
(in the MANIFEST.MF
for plug-in projects and in the feature.xml
for feature projects). The qualifier segment of the version will be automatically replaced, in the produced jar files, with a timestamp when the update site is generated. For example, in the update site, you will find jars of the org.example.hellomaven.feature_1.0.0.201605021231.jar org...