Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext build with maven and mixed Xtend/Java projects
Xtext build with maven and mixed Xtend/Java projects [message #1715925] Fri, 27 November 2015 18:37 Go to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
I am trying to build a project that includes an Xtext component as well as several plugins that mix Java and Xtend but I have a problem building it (with Maven).

I'm following the instructions from https://eclipse.org/Xtext/documentation/350_continuous_integration.html, but there is a problem.

The instructions say that the releng project's pom.xml must declare the xtend-maven-plugin in 'pluginManagement' instead of 'plugins', and as the comment indicates, this is so that the plugin that executes the workflow runs before Xtend.

The problem is that if I do that, then other non-xtext projects that mix Java and Xtend won't execute the xtend-maven-plugin unless I put it directly under 'plugins' instead of under 'pluginManagement' in the main releng pom.xml.

Is there a way to configure the pom files so that xtend-maven-plugin runs after the workflow but is not ignored by the other builds (as it happens when putting it under 'pluginsManagement')?

Thanks.


Re: Xtext build with maven and mixed Xtend/Java projects [message #1715926 is a reply to message #1715925] Fri, 27 November 2015 19:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

i think there are some missunderstandings or the doc is simply wrong.
if you look at https://github.com/xtext/maven-xtext-example you can see as well, that

<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>

is in the plugins section of the build as well.
so simply ignore that comment

you may have a look at

https://github.com/cdietrich/xtext-maven-example
or
the project created by the wizard in 2.9


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext build with maven and mixed Xtend/Java projects [message #1715927 is a reply to message #1715926] Fri, 27 November 2015 19:16 Go to previous messageGo to next message
Stefan Oehme is currently offline Stefan OehmeFriend
Messages: 159
Registered: April 2010
Location: Kiel
Senior Member

Yeah the reason in the docs doesn't make sense.

It's in plugin management in the parent pom, so that subprojects can opt in/out of using Xtend. Especially since some subprojects don't even contain source code (the parent, the target platform, the repository,...).

The plugin management makes sure that you don't have to repeat the version and the executions.
Re: Xtext build with maven and mixed Xtend/Java projects [message #1715928 is a reply to message #1715926] Fri, 27 November 2015 21:01 Go to previous message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Ah! I was missing that bit. It is in your sample project but not in the Xtext webpage.

Thanks.
Previous Topic:Xtext Grammar generates extera white space
Next Topic:AbstractModelInferrer how to link XExpression XFeatureCall's feature to JvmField that just got adde
Goto Forum:
  


Current Time: Thu Apr 25 11:55:00 GMT 2024

Powered by FUDForum. Page generated in 0.02446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top