Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1528078da776e03f2ac3536d75575bd94aa7e1bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2007, 2013 THALES GLOBAL SERVICES
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html

  Contributors:
       Obeo - Initial API and implementation
-->
<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>

  <prerequisites>
    <maven>3.0</maven>
  </prerequisites>

  <groupId>org.eclipse.sirius</groupId>
  <artifactId>org.eclipse.sirius.releng.targets</artifactId>
  <version>4.1.2-SNAPSHOT</version>
  <packaging>pom</packaging>

  <licenses>
    <license>
      <name>Eclipse Public License v1.0</name>
      <comments>
	All rights reserved.

	This program and the accompanying materials are made
	available under the terms of the Eclipse Public License v1.0
	which accompanies this distribution, and is available at
	http://www.eclipse.org/legal/epl-v10.htm
      </comments>
    </license>
  </licenses>

  <properties>
    <tycho-version>0.24.0</tycho-version>
    <tycho-extras-version>0.24.0</tycho-extras-version>
    <targetPlatform.repository.p2>http://mbarbero.github.com/fr.obeo.releng.targetplatform/p2/</targetPlatform.repository.p2>
    <target.definition>baseline.targetplatform</target.definition>
  </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>http://download.eclipse.org/releases/mars</url>
	    </repository>
	    <repository>
	      <id>targetplatform</id>
	      <layout>p2</layout>
	      <url>${targetPlatform.repository.p2}</url>
	    </repository>
	  </repositories>
	  <appArgLine>-consoleLog -application fr.obeo.releng.targetplatform.targetPlatform.converter ${target.definition}</appArgLine>
	  <!-- Set dependencies to launch the application -->
	  <dependencies>
	    <dependency>
	      <artifactId>fr.obeo.releng.targetplatform-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>

Back to the top