[XCore] xtend-maven-plugin used with tycho don't generate sources on JENKINS [message #1711755] |
Mon, 19 October 2015 10:06  |
Eclipse User |
|
|
|
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.8.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.8.3</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
The XCore File is located at <project>/model/my.xcore
The Build is based on Maven-Tycho.
When I call the Maven Build directly from the m2e Plugin using a typical releng within Eclipse, that is no problem. Eclipse Plugins will create the Java sources.
My problem is, that the xtend-maven-plugin will not generate the Java-Files in JENKINS without a complete Eclipse Environment based on the definition of that /model/my.xcore file.
Any ideas? Something missing for a build in Jenkins.
[Updated on: Mon, 19 October 2015 10:14] by Moderator
|
|
|
|
|
|
|
|
Re: [XCore] xtend-maven-plugin used with tycho don't generate sources on JENKINS [message #1711939 is a reply to message #1711883] |
Tue, 20 October 2015 07:17  |
Eclipse User |
|
|
|
The xtext maven plugin can be used for that, look for example at the
recommenders project
https://git.eclipse.org/c/recommenders/org.eclipse.recommenders.git/tree/plugins/org.eclipse.recommenders.stacktraces.model/pom.xml?id=v2.1.13
On 2015-10-20 08:58:13 +0000, Tom Schindl said:
> Why should the xtend-maven plugin generate code for xcore? Is there a
> maven integration for xcore at all?
>
> Tom
>
> On 19.10.15 16:06, Jack Kilian wrote:
>>
>> <plugin>
>> <groupId>org.eclipse.xtend</groupId>
>> <artifactId>xtend-maven-plugin</artifactId>
>> <version>2.8.3</version>
>> <configuration>
>> <encoding>UTF-8</encoding>
>> </configuration>
>> <executions>
>> <execution>
>> <goals>
>> <goal>compile</goal>
>> </goals>
>> <configuration>
>> <outputDirectory>${basedir}/xtend-gen</outputDirectory>
>> </configuration>
>> </execution>
>> </executions>
>> <dependencies>
>> <dependency>
>> <groupId>org.eclipse.xtend</groupId>
>> <artifactId>org.eclipse.xtend.lib</artifactId>
>> <version>2.8.3</version>
>> <type>pom</type>
>> </dependency>
>> </dependencies>
>> </plugin>
>>
>>
>> The XCore File is located at <project>/model/my.xcore
>>
>> My problem is, that the xtend-maven-plugin will not generate the
>> Java-Files based on the definition of that /model/my.xcore file.
>>
>> The Build is based on Maven-Tycho. When I call the Maven Build directly
>> from the m2e Plugin usinf a typical releng within Eclipse, that is no
>> problem. Eclipse generates the Java-Files by using Eclipse Plugins.
>>
>> But when I call the whole stuff from JENKINS without Eclipse
>> Environment, the Java-Files are not generated.
|
|
|
Powered by
FUDForum. Page generated in 0.05372 seconds