blob: 9129e4b7b4659b6337147416eccdfeddd25855f6 [file]
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>org.eclipse.viatra.parent.all</artifactId>
<groupId>org.eclipse.viatra</groupId>
<version>2.9.0-SNAPSHOT</version>
<relativePath>../../../releng/org.eclipse.viatra.parent.all/pom.xml</relativePath>
</parent>
<artifactId>org.eclipse.viatra.query.patternlanguage.emf.tests</artifactId>
<packaging>eclipse-test-plugin</packaging>
<properties>
<vmargs>${tycho.testArgLine} -Xmx1024m</vmargs>
<emf.workspace.location>${project.basedir}/../../target/workspace</emf.workspace.location>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=397015 -->
<sonar.sources></sonar.sources>
<sonar.tests>src,src-gen,emf-gen,xtend-gen</sonar.tests>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>emf-gen</directory>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
<fileset>
<directory>xtend-gen</directory>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<configuration>
<applicationsArgs>
<args>-data ${emf.workspace.location}</args>
<args>-application org.eclipse.emf.codegen.ecore.Generator</args>
<args>-projects ${project.basedir}</args>
<args>-model ${project.basedir}/model/typetest.genmodel</args>
<args>${project.basedir}</args>
</applicationsArgs>
<dependencies>
<dependency>
<artifactId>org.eclipse.emf.codegen.ecore</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
<repositories>
<repository>
<id>simrel</id>
<layout>p2</layout>
<url>${simrel.repository.url}</url>
</repository>
</repositories>
</configuration>
<executions>
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<argLine>${vmargs}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>