xtext: Maven execution problem with latest EMF version

Strictly this is an EMF issue, but I thought I let you know because it breaks Xtext based builds.

The org.eclipse.emf.codegen.ecore bundle is obsolete at Maven central: last version is 2.12.0, like shown at http://search.maven.org/#search|ga|1|a%3A"org.eclipse.emf.codegen.ecore"

The latest version from Photon is 2.14.0 though. And EMF extended the genmodel which leads to this problem:

[ERROR] Failed to execute goal org.eclipse.xtext:xtext-maven-plugin:2.14.0:generate (default) on project my.cool.dsl: Execution default of goal org.eclipse.xtext:xtext-maven-plugin:2.14.0:generate failed: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'eclipsePlatformVersion' not found. (archive:file:/.../jenkins/.m2/repository/p2/osgi/bundle/org.eclipse.emf.codegen.ecore/2.14.0.v20180418-0836/org.eclipse.emf.codegen.ecore-2.14.0.v20180418-0836.jar!/model/GenModel.genmodel, 11, 50) -> [Help 1]

Any advice what to do? Downgrade EMF again?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

I’m working on the deployment of EMF artifacts to Maven Central at the moment. Soon 2.13 & 2.14 will be available.

Finally EMF 2.15 is released and its artifacts are deployed on Maven Central, e.g. https://search.maven.org/artifact/org.eclipse.emf/org.eclipse.emf.ecore/2.15.0/jar

pom.xml.txt

updated pom there are two problems right now

  • bad ranges for antlr,=> too new version is used
  • there is a validation in xcore 2.14 that does not work standalone. contacted @merks via forum to find out more about that validation