Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtend-maven-plugin has no outputs
xtend-maven-plugin has no outputs [message #1006505] Thu, 31 January 2013 14:21 Go to next message
Soenke Brightside is currently offline Soenke BrightsideFriend
Messages: 41
Registered: January 2011
Member
Hi,

Here is a snipped of pom.xml of the xtend project:
Quote:
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<outputDirectory>xtend-gen</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>xtend-gen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>


The result:
Quote:
[INFO] --- xtend-maven-plugin:2.3.1:compile (default) @ de.dlr.ft.exchange.base.xtend ---
4686 [main] INFO e.compiler.batch.XtendBatchCompiler - Compiling 1 source file to xtend-gen

But there is no compiled file in my xtend-gen folder. Other projects can't be build becaus the compiled classes cannot be found.

Any help?
Re: xtend-maven-plugin has no outputs [message #1006533 is a reply to message #1006505] Thu, 31 January 2013 15:32 Go to previous messageGo to next message
Soenke Brightside is currently offline Soenke BrightsideFriend
Messages: 41
Registered: January 2011
Member
Okay, xtend compiled the file. But the generated file is saved in the .parent project - not in the xtend project where it supposed to be.
Re: xtend-maven-plugin has no outputs [message #1006534 is a reply to message #1006505] Thu, 31 January 2013 15:38 Go to previous messageGo to next message
Moritz Eysholdt is currently offline Moritz EysholdtFriend
Messages: 161
Registered: July 2009
Location: Kiel, Germany
Senior Member
Hi Soenke,

with your configuration and Xtend 2.4-SNAPSHOT I get an output file in

/MyProject/xtend-gen

Did you check that location? Please note, that if the folder xtend-gen did not exist previously and you're using Eclipse, you'll have to add it as a source folder manually.

hth,
Moritz
Re: xtend-maven-plugin has no outputs [message #1006536 is a reply to message #1006533] Thu, 31 January 2013 15:41 Go to previous messageGo to next message
Moritz Eysholdt is currently offline Moritz EysholdtFriend
Messages: 161
Registered: July 2009
Location: Kiel, Germany
Senior Member
Soenke Brightside wrote on Thu, 31 January 2013 16:32
Okay, xtend compiled the file. But the generated file is saved in the .parent project - not in the xtend project where it supposed to be.


did you declare the Xtend compiler plugin in the parent pom.xml?
Re: xtend-maven-plugin has no outputs [message #1008289 is a reply to message #1006505] Mon, 11 February 2013 19:14 Go to previous message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Regarding "But the generated file is saved in the .parent project - not in the xtend project where it supposed to be.", if you define the xtend-maven-plugin in a parent pom.xml, you have to use <configuration><outputDirectory>${basedir}/xtend-gen</outputDirectory></configuration>, as we do here: https://github.com/vorburger/xtext-maven-examples/blob/master/2.3.0-example/org.xtext.example.mydsl.parent/pom.xml...
Previous Topic:Using multiple OutputConfigurations with an JvmModelInferrer
Next Topic:Plugin editor fails to load
Goto Forum:
  


Current Time: Thu Mar 28 12:17:37 GMT 2024

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

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

Back to the top