Skip to content

Commit

Permalink
Merge pull request #19 from kit-sdq/xtend-maven-build
Browse files Browse the repository at this point in the history
Compile Xtend code in Maven build
  • Loading branch information
HeikoKlare authored Jun 3, 2022
2 parents b07b89a + f81477b commit c43ecaf
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-clean.version>3.1.0</maven-clean.version>
<tycho.version>2.5.0</tycho.version>
<mwe.version>1.6.1</mwe.version>
<mwe2.version>2.12.1</mwe2.version>
Expand Down Expand Up @@ -49,6 +50,47 @@
</configuration>
</plugin>

<!-- Use Xtend -->
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>${xtext.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>xtend-gen</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

<!-- Consider Xtend in cleanup -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean.version}</version>
<executions>
<execution>
<id>gen-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>xtend-gen</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
Expand Down

0 comments on commit c43ecaf

Please sign in to comment.