]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - releng/org.simantics.sdk.build.targetdefinition/build/pom.xml
Mirrored CBI TPD tool and eclipse collections to simantics.org
[simantics/platform.git] / releng / org.simantics.sdk.build.targetdefinition / build / pom.xml
diff --git a/releng/org.simantics.sdk.build.targetdefinition/build/pom.xml b/releng/org.simantics.sdk.build.targetdefinition/build/pom.xml
new file mode 100644 (file)
index 0000000..cc70d35
--- /dev/null
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+
+       <groupId>org.simantics</groupId>
+       <artifactId>org.simantics.sdk.build.targetdefinition.build</artifactId>
+       <version>1.0.0-SNAPSHOT</version>
+       <packaging>pom</packaging>
+
+       <properties>
+               <tycho-version>1.5.0</tycho-version>
+               <tycho-extras-version>1.5.0</tycho-extras-version>
+               <platform-version-name>2019-12</platform-version-name>
+               <platform.repository.p2>http://www.simantics.org/update/${platform-version-name}</platform.repository.p2>
+               <targetPlatform.repository.p2>http://www.simantics.org/update/cbi/tpd/3.0.0-SNAPSHOT/</targetPlatform.repository.p2>
+               <targetPlatform.application.name>org.eclipse.cbi.targetplatform.tpd.converter</targetPlatform.application.name>
+               <targetPlatform.application.feature>org.eclipse.cbi.targetplatform-feature</targetPlatform.application.feature>
+               <!--<tpd>../org.simantics.sdk.build.targetdefinition.tpd</tpd>-->
+               <tpd>../simantics.tpd</tpd>
+       </properties>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.eclipse.tycho.extras</groupId>
+                               <artifactId>tycho-eclipserun-plugin</artifactId>
+                               <version>${tycho-extras-version}</version>
+                               <configuration>
+                                       <repositories>
+                                               <repository>
+                                                       <id>${platform-version-name}</id>
+                                                       <layout>p2</layout>
+                                                       <url>${platform.repository.p2}</url>
+                                               </repository>
+                                               <repository>
+                                                       <id>targetplatform</id>
+                                                       <layout>p2</layout>
+                                                       <url>${targetPlatform.repository.p2}</url>
+                                               </repository>
+                                       </repositories>
+                                       <appArgLine>-consoleLog -application ${targetPlatform.application.name} ${tpd}</appArgLine>
+                                       <!-- Set dependencies to launch the application -->
+                                       <dependencies>
+                                               <dependency>
+                                                       <artifactId>${targetPlatform.application.feature}</artifactId>
+                                                       <type>eclipse-feature</type>
+                                               </dependency>
+                                               <dependency>
+                                                       <artifactId>org.eclipse.equinox.p2.sdk</artifactId>
+                                                       <type>eclipse-feature</type>
+                                               </dependency>
+                                       </dependencies>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>eclipse-run</goal>
+                                               </goals>
+                                               <!-- The phase validate rebuild the targetplatform before to compile/test... 
+                                                       @see https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html -->
+                                               <phase>validate</phase>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+
+</project>
\ No newline at end of file