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 ...

Get Implementing Domain-Specific Languages with Xtext and Xtend - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.