Skip to content
Snippets Groups Projects
Commit 330c9a16 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Maven: Add logic for EMF code generation

parent a31ea97e
No related branches found
No related tags found
1 merge request!463620
......@@ -14,4 +14,58 @@
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<bundle.container.name>kernel</bundle.container.name>
</properties>
<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>process-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<!-- For testing new emf-generator jars, a file:// URL can be 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>process-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-jar</argument>
<argument>${project.build.directory}/emf-generator.jar</argument>
<argument>${project.basedir}/../../</argument>
<argument>1</argument>
<argument>${bundle.container.name}/${project.name}/model/</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment