| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.eclipse.emf.parsley</groupId> |
| <artifactId>org.eclipse.emf.parsley.examples.maven</artifactId> |
| <version>1.8.0-SNAPSHOT</version> |
| |
| <packaging>eclipse-test-plugin</packaging> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <tycho-version>0.23.0</tycho-version> |
| <xtext-version>2.9.2</xtext-version> |
| |
| <maven.compiler.source>1.6</maven.compiler.source> |
| <maven.compiler.target>1.6</maven.compiler.target> |
| </properties> |
| |
| <repositories> |
| <repository> |
| <!-- we also need this one because this is an eclipse project, so it needs |
| to resolve EMF Parsley runtime dependencies from the p2 repository --> |
| <id>EMF Parsley</id> |
| <layout>p2</layout> |
| <url>http://download.eclipse.org/emf-parsley/updates</url> |
| </repository> |
| <repository> |
| <id>eclipse</id> |
| <layout>p2</layout> |
| <url>http://download.eclipse.org/releases/mars</url> |
| </repository> |
| <repository> |
| <id>Xtext Update Site</id> |
| <layout>p2</layout> |
| <url>http://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtext-version}</url> |
| </repository> |
| </repositories> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-maven-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <extensions>true</extensions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>2.5</version> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${basedir}/emfparsley-gen</directory> |
| <excludes> |
| <exclude>.gitignore</exclude> |
| </excludes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.xtext</groupId> |
| <artifactId>xtext-maven-plugin</artifactId> |
| <version>${xtext-version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <languages> |
| <language> |
| <setup>org.eclipse.emf.parsley.dsl.EmfParsleyDslStandaloneSetup</setup> |
| <outputConfigurations> |
| <outputConfiguration> |
| <outputDirectory>${basedir}/emfparsley-gen</outputDirectory> |
| </outputConfiguration> |
| </outputConfigurations> |
| </language> |
| </languages> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.emf.parsley</groupId> |
| <artifactId>org.eclipse.emf.parsley.dsl.standalone</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.8</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>emfparsley-gen/</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |