Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext-maven-plugin and DSL-Files located in src/main/resources
xtext-maven-plugin and DSL-Files located in src/main/resources [message #1832196] Fri, 11 September 2020 10:29 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I'm trying to integrate our DSL into a maven setup but it looks like DSL-Files are only found if they are located in "src/main/java" but not in "src/main/resources".

Is there a configuration setting, ... or something else I could do to make them recognized appropriately?
Re: xtext-maven-plugin and DSL-Files located in src/main/resources [message #1832197 is a reply to message #1832196] Fri, 11 September 2020 10:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
https://github.com/eclipse/xtext-maven/blob/e6eb4a30c42b055d2625dbae7c82ffc46feecb19/org.eclipse.xtext.maven.plugin/src/main/java/org/eclipse/xtext/maven/AbstractXtextGeneratorMojo.java#L69

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext-maven-plugin and DSL-Files located in src/main/resources [message #1832199 is a reply to message #1832197] Fri, 11 September 2020 10:48 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
ahh!! - wonderful

					<sourceRoots>
						<sourceRoot>${project.basedir}/src/main/resources</sourceRoot>
					</sourceRoots>



worked like a charme!
Previous Topic:Problem installing 2.23.0 on Eclipse 2020-06
Next Topic:Inject extension into newly generated object
Goto Forum:
  


Current Time: Fri Apr 19 22:15:19 GMT 2024

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

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

Back to the top