|
@@ -13,7 +13,42 @@
|
|
|
<groupId>org.yakindu.sct.plugins</groupId>
|
|
|
<packaging>eclipse-plugin</packaging>
|
|
|
<build>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>${project.build.directory}/xtext</directory>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
<plugins>
|
|
|
+ <!-- Copy all Xtext related sources to seperate folder that is registered
|
|
|
+ as resource folder -->
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>initialize</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}/xtext</outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.xtext</include>
|
|
|
+ <include>**/*.mwe2</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.eclipse.tycho</groupId>
|
|
|
<artifactId>tycho-source-plugin</artifactId>
|
|
@@ -27,6 +62,35 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-clean-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <filesets>
|
|
|
+ <fileset>
|
|
|
+ <directory>xtend-gen</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**</include>
|
|
|
+ </includes>
|
|
|
+ <excludes>
|
|
|
+ <exclude>.gitignore</exclude>
|
|
|
+ <exclude>.svn/</exclude>
|
|
|
+ </excludes>
|
|
|
+ </fileset>
|
|
|
+ </filesets>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.eclipse.xtend</groupId>
|
|
|
+ <artifactId>xtend-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>compile</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|