Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How can I add sourceDir to xtext-maven-plugin
How can I add sourceDir to xtext-maven-plugin [message #1257321] Wed, 26 February 2014 09:44 Go to next message
Sven Rathgeber is currently offline Sven RathgeberFriend
Messages: 1
Registered: December 2013
Junior Member
Hello,

I am looking for a way to add sourceDirectories to the xtext-maven-plugin (2.5.2) to
be able to put my model file in a different place than "src/main/java".

Couldn't find anything on the net or the xtext homepage.

So I tried the following, but failed Sad

<plugin>
<groupId>org.eclipse.xtext</groupId>
<artifactId>xtext-maven-plugin</artifactId>
<version>${xtext.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>

</execution>
</executions>
<configuration>
<languages>
<!-- Add additional standalone setups if you have more than one language -->
<language>
<setup>de.dfs.sim.dml.DataModelLanguageStandaloneSetup</setup>
<sourceDirs>
<sourceDir>src/main/resources</sourceDir>
</sourceDirs>
<outputConfigurations>
<outputConfiguration>
<outputDirectory>${project.build.directory}/src/xtext/</outputDirectory>
</outputConfiguration>
</outputConfigurations>
</language>
</languages>
</configuration>

Any suggestions ?

Cheers.

Sven
Re: How can I add sourceDir to xtext-maven-plugin [message #1257787 is a reply to message #1257321] Wed, 26 February 2014 20:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13642
Registered: July 2009
Senior Member
Hi,

did you try to use the maven build helper plugin (add-source)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How can I add sourceDir to xtext-maven-plugin [message #1258078 is a reply to message #1257787] Thu, 27 February 2014 03:28 Go to previous message
Xi Lin is currently offline Xi LinFriend
Messages: 21
Registered: January 2014
Junior Member
Maybe you can try the parameter
sourceRoots
.
Previous Topic:Syntactic sugar with assigned actions
Next Topic:Saving of a resource and modifying the same after that in xtext
Goto Forum:
  


Current Time: Wed Oct 28 23:27:22 GMT 2020

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

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

Back to the top