Commit 02078f0a authored by Alexander Diewald's avatar Alexander Diewald

Update pom.xml

parent cc2534e6
Pipeline #20891 failed with stages
in 5 minutes and 29 seconds
<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>
<name>EMF Generation</name>
<version>1.0.0-SNAPSHOT</version>
<artifactId>org.fortiss.af3.generation</artifactId>
<groupId>org.fortiss.af3</groupId>
<parent>
<groupId>org.fortiss.af3</groupId>
<artifactId>org.fortiss.af3.root</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<!--
Defines the code generation from EMF models.
-->
<profiles>
<profile>
<id>tooling</id>
<activation>
<property>
<name>build.tooling</name>
<value>true</value>
</property>
</activation>
<properties>
<genmodel.searchpath>${basedir}/../kernel/</genmodel.searchpath>
</properties>
</profile>
<profile>
<id>af3</id>
<activation>
<property>
<name>build.af3</name>
<value>true</value>
</property>
</activation>
<!-- Here, we must include all ecores due to dependencies: The platform is
the common folder of the af3 and the kernel repo. -->
<properties>
<genmodel.searchpath>${basedir}/../</genmodel.searchpath>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<!-- the wget goal actually binds itself to this phase by default -->
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<!-- For testing new emf-generator jars, use a file:// URL.
NOTE: You must clean ${M2_HOME}/repository/.cache/download-maven-plugin/emf-generator.jar*
before. Otherwise, the previous version is used. -->
<url>https://git.fortiss.org/af3/jenkins-tools/raw/3620/de.itemis.emfgenerator/jar/emf-generator.jar</url>
<outputFileName>emf-generator.jar</outputFileName>
<!-- default target location, just to demonstrate the parameter -->
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>Generate-EMF-code</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/emf-generator.jar</argument>
<argument>${genmodel.searchpath}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
<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>
<name>EMF Generation</name>
<version>1.0.0-SNAPSHOT</version>
<artifactId>org.fortiss.af3.generation</artifactId>
<groupId>org.fortiss.af3</groupId>
<parent>
<groupId>org.fortiss.af3</groupId>
<artifactId>org.fortiss.af3.root</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<!--
Defines the code generation from EMF models.
-->
<profiles>
<profile>
<id>tooling</id>
<activation>
<property>
<name>build.tooling</name>
<value>true</value>
</property>
</activation>
<properties>
<genmodel.searchpath>${basedir}/../kernel/</genmodel.searchpath>
</properties>
</profile>
<profile>
<id>af3</id>
<activation>
<property>
<name>build.af3</name>
<value>true</value>
</property>
</activation>
<!-- Here, we must include all ecores due to dependencies: The platform is
the common folder of the af3 and the kernel repo. -->
<properties>
<genmodel.searchpath>${basedir}/../</genmodel.searchpath>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<!-- the wget goal actually binds itself to this phase by default -->
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<!-- For testing new emf-generator jars, use a file:// URL.
NOTE: You must clean ${M2_HOME}/repository/.cache/download-maven-plugin/emf-generator.jar*
before. Otherwise, the previous version is used. -->
<url>https://git.fortiss.org/af3/ci-tools/raw/de.itemis.emfgenerator/jar/emf-generator.jar</url>
<outputFileName>emf-generator.jar</outputFileName>
<!-- default target location, just to demonstrate the parameter -->
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>Generate-EMF-code</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/emf-generator.jar</argument>
<argument>${genmodel.searchpath}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment