-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples.etl: add standalone example which fetches dependencies autom…
…atically from Central and Github Packages
- Loading branch information
1 parent
bbb0b6b
commit df67c72
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
examples/org.eclipse.epsilon.emc.magicdraw.examples.etl/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse.epsilon.emc.magicdraw</groupId> | ||
<artifactId>emc-magicdraw-plain-parent</artifactId> | ||
<version>2.4.0-SNAPSHOT</version> | ||
<relativePath>../../pom-plain.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>example-etl</artifactId> | ||
|
||
<!-- | ||
Remember to set up Github as a repository in your settings, as in [1]. Use this repository: | ||
https://maven.pkg.github.com/epsilonlabs/emc-cameo | ||
[1]: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry | ||
--> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>github</id> | ||
<url>https://maven.pkg.github.com/epsilonlabs/emc-cameo</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<properties> | ||
<epsilon.version>2.4.0</epsilon.version> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>3.0.0</version> | ||
<executions> | ||
<execution> | ||
<phase>compile</phase> | ||
<configuration> | ||
<target> | ||
<!-- Set up the core Epsilon tasks --> | ||
<taskdef resource="org/eclipse/epsilon/workflow/tasks/tasks.xml"/> | ||
<!-- Set up the Epsilon EMF tasks --> | ||
<taskdef resource="org/eclipse/epsilon/workflow/tasks/emf/tasks.xml"/> | ||
|
||
<epsilon.emf.loadModel name="Tree" metamodelfile="Tree.ecore" modelfile="tree.model"/> | ||
<epsilon.loadModel type="MagicDrawRemote" name="MagicDraw" impl="org.eclipse.epsilon.emc.magicdraw.remote.MagicDrawModel"> | ||
<parameter name="storeOnDisposal" value="true"/> | ||
</epsilon.loadModel> | ||
|
||
<epsilon.etl src="tree2Classes.etl"> | ||
<model ref="Tree"/> | ||
<model ref="MagicDraw"/> | ||
</epsilon.etl> | ||
|
||
<epsilon.disposeModel model="Tree"/> | ||
<epsilon.disposeModel model="MagicDraw"/> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.eclipse.epsilon</groupId> | ||
<artifactId>org.eclipse.epsilon.workflow</artifactId> | ||
<version>${epsilon.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.epsilon</groupId> | ||
<artifactId>org.eclipse.epsilon.workflow.emf</artifactId> | ||
<version>${epsilon.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.epsilon.emc.magicdraw</groupId> | ||
<artifactId>org.eclipse.epsilon.emc.magicdraw.remote</artifactId> | ||
<version>2.4.0-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |