Skip to content

Commit

Permalink
vtst#206 vtst#208 add xtext-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvi committed Apr 29, 2014
1 parent 8e6cf94 commit 7c9db53
Showing 1 changed file with 139 additions and 18 deletions.
157 changes: 139 additions & 18 deletions src/eclipse/net.vtst.ow.eclipse.less/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,145 @@
<artifactId>net.vtst.ow.eclipse.less</artifactId>
<version>1.0.19</version>
<packaging>eclipse-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.ui.ide</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>

<dependencies>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.5.1</version>
</dependency>
</dependencies>

<build>
<plugins>
<!--
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.5.4</version>
<configuration>
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<!-- http://mvnrepository.com/artifact/org.eclipse.xtext/xtext-maven-plugin
<plugin>
<groupId>org.eclipse.xtext</groupId>
<artifactId>xtext-maven-plugin</artifactId>
<version>2.5.4</version>
<configuration>
<outputDirectory>${basedir}/src-gen</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
-->

<!-- adapted from http://www.eclipse.org/forums/index.php/t/639454/ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/xtend-gen</directory>
</fileset>
<!-- clean ui plugin as well -->
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.ui/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.ui/xtend-gen</directory>
</fileset>
<!-- clean test fragment as well
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.tests/src-gen</directory>
</fileset>
<fileset>
<directory>${basedir}/../${project.groupId}.${project.artifactId}.tests/xtend-gen</directory>
</fileset>
-->
</filesets>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>false</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<mainClass>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</mainClass>
<arguments>
<argument>file://${project.basedir}/src/net/vtst/ow/eclipse/less/GenerateLess.mwe2</argument>
<argument>
-p
</argument>
<argument>
runtimeProject=/${project.basedir}
</argument>
</arguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xtext</artifactId>
<version>2.5.4</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>2.5.4</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.5.4</version>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.ui.ide</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 7c9db53

Please sign in to comment.