blob: 7cee89b8b7dcd3fb8c509a4dca1e4e3741ca5839 [file] [log] [blame]
<?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.core</artifactId>
<groupId>org.eclipse.viatra</groupId>
<version>2.5.0-SNAPSHOT</version>
<relativePath>../../../releng/org.eclipse.viatra.parent.core/pom.xml</relativePath>
</parent>
<artifactId>org.eclipse.viatra.addon.viewers.runtime</artifactId>
<packaging>eclipse-plugin</packaging>
<properties>
<emf.workspace.location>${project.basedir}/../../target/workspace</emf.workspace.location>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset><!-- EMF generated code -->
<directory>emf-gen</directory>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
<fileset><!-- EMF generator workspace -->
<directory>${emf.workspace.location}</directory>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
<fileset><!-- VIATRA Query generated code -->
<directory>src-gen</directory>
<excludes>
<exclude>.gitignore</exclude>
</excludes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<configuration>
<applicationsArgs>
<applicationsArg>-data ${emf.workspace.location}</applicationsArg>
<applicationsArg>-application org.eclipse.emf.codegen.ecore.Generator</applicationsArg>
<applicationsArg>-projects ${project.basedir}</applicationsArg>
<applicationsArg> -model</applicationsArg>
<applicationsArg>${project.basedir}/model/notation.genmodel</applicationsArg>
<applicationsArg>${project.basedir}</applicationsArg>
</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.viatra</groupId>
<artifactId>viatra-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>src-gen</outputDirectory>
<useProjectDependencies>true</useProjectDependencies>
<metamodels>
<metamodel>
<genmodelUri>model/notation.genmodel</genmodelUri>
</metamodel>
</metamodels>
</configuration>
</plugin>
</plugins>
</build>
</project>