Hi,
I think the Tycho build for Luna has not been configured to compile XTend files. The generated Java files were pushed to the source repository.
You can generate them automatically by adding the following build steps to your pom:
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<fileset>
<directory>xtend-gen</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>xtend-gen</outputDirectory>
<testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>
We usually add a .gitignore in the xtend-gen folder to keep the folder inside the source repository, but that’s not mandatory
Camille
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de EL AYADI, ABDELLAH
Envoyé : vendredi 3 avril 2015 11:13
À : mdt-papyrus.dev@xxxxxxxxxxx
Objet : [mdt-papyrus.dev] Compile Xtext files using Maven and Hudson
Hello there,
I am spirit to configure my own build Hudson of the version 1.0.2 of papyrus, to be able to test before contributing,
but I do not manage to generate Java files from Xtend files.
For example: “plugins\infra\gmfdiag\css\org.eclipse.papyrus.infra.gmfdiag.css.xtext\src\org\eclipse\papyrus\infra\gmfdiag\generator\CSSGenerator.xtend” most generate “CSSGenerator.java”.
I use the goal "clean verify" and no profile on the file "releng/top-pom-main.xml".
I don’t know If I forget to do something.
Thank you in advance.
![blue_strip](gifwReCnP0Qlb.gif)
EL AYADI Abdellah
+33 (5) 34 36 34 59
Standard : +33 (5) 34 36 37 38
Mail: abdellah.elayadi@xxxxxxxx
Les Espaces Saint Martin
6 impasse Alice Guy
BP43045 - 31024 Toulouse Cedex 3
atos.net
![atos_logotype](gifyy0xgkMCSY.gif)
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l’intention exclusive des destinataires désignés. Il contient des informations
confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le message. Toute utilisation de ce message non conforme à sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) décline(nt) toute responsabilité au titre de son contenu.
Bien que ce message ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut garantir l’absence totale de logiciels malveillants dans son contenu et ne pourrait être tenu pour responsable des dommages engendrés par la transmission
de l’un d’eux.
This message and any attachments (the "message") are intended solely for the addressee(s). It contains confidential information, that may be privileged. If you receive this message in error, please notify the sender immediately and delete the message. Any use
of the message in violation of its purpose, any dissemination or disclosure, either wholly or partially is strictly prohibited, unless it has been explicitly authorized by the sender. As its integrity cannot be secured on the internet, Atos and its subsidiaries
decline any liability for the content of this message. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus
transmitted.