pom.xml 4.9 KB
Newer Older
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
<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>AF3 main configuration POM</name>
  <version>1.0.0-SNAPSHOT</version>
  <artifactId>org.fortiss.af3.configuration</artifactId>
  <groupId>org.fortiss.af3</groupId>

  <packaging>pom</packaging>

  <properties>
    <tycho-version>1.3.0</tycho-version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!-- JavaFX-SWT Hook to be removed when javafx-swt is published on
         mavencentral. -->
    <openjfx.swt.path>${project.build.directory}/.jfx-swt</openjfx.swt.path>
    <!-- End hook -->
  </properties>


  <profiles>
    <!-- Helpers to identify the OS family. -->
    <profile>
      <id>windows</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <properties>
        <osClassifier>win</osClassifier>
32
33
34
        <osgiOSClassifier>win32</osgiOSClassifier>
        <osgiWSClassifier>win32</osgiWSClassifier>
        <osgiArchClassifier>x86_64</osgiArchClassifier>
35
36
37
38
39
40
41
42
43
44
45
      </properties>
    </profile>
    <profile>
      <id>osx</id>
      <activation>
        <os>
          <family>osx</family>
        </os>
      </activation>
      <properties>
        <osClassifier>mac</osClassifier>
46
47
48
        <osgiOSClassifier>macosx</osgiOSClassifier>
        <osgiWSClassifier>cocoa</osgiWSClassifier>
        <osgiArchClassifier>x86_64</osgiArchClassifier>
49
50
51
52
53
54
55
56
57
58
59
      </properties>
    </profile>
    <profile>
      <id>linux</id>
      <activation>
        <os>
          <family>linux</family>
        </os>
      </activation>
      <properties>
        <osClassifier>linux</osClassifier>
60
61
62
        <osgiOSClassifier>linux</osgiOSClassifier>
        <osgiWSClassifier>gtk</osgiWSClassifier>
        <osgiArchClassifier>x86_64</osgiArchClassifier>
63
64
65
66
      </properties>
    </profile>
    <!-- Install the kernel p2 site for all af3 profiles -->
    <profile>
67
68
      <id>tooling-p2-local</id>
      <activation>
69
70
71
        <property>
          <name>!tooling</name>
        </property>
72
      </activation>
73
74
75
76
77
78
      <repositories>
        <repository>
          <!-- Place more centrally and combine with af3 profile -->
          <id>tooling-p2</id>
          <layout>p2</layout>
          <!-- In jenkins, the tooling update site must be copied to this location. -->
Alexander Diewald's avatar
Alexander Diewald committed
79
          <url>file:${user.dir}/releng/org.fortiss.tooling.update/target/repository/</url>
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
        </repository>
      </repositories>
    </profile>
  </profiles>

  <build>
    <plugins>
      <!-- End hook -->
      <plugin>
        <!-- enable tycho build extension -->
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <includeAllDependencies>true</includeAllDependencies>
          <profileProperties>
            <macosx-bundled>true</macosx-bundled>
          </profileProperties>
        </configuration>
      </plugin>
    </plugins>

    <pluginManagement>
      <plugins>
110
111
112
113
114
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-surefire-plugin</artifactId>
          <version>${tycho-version}</version>
        </plugin>
        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>target-platform-configuration</artifactId>
          <version>${tycho-version}</version>
          <configuration>
            <target>
              <artifact>
                <groupId>org.fortiss.af3</groupId>
                <artifactId>org.fortiss.af3.target</artifactId>
                <version>1.0.0-SNAPSHOT</version>
              </artifact>
            </target>
            <environments>
              <environment>
                <os>macosx</os>
                <ws>cocoa</ws>
                <arch>x86_64</arch>
              </environment>
              <environment>
                <os>linux</os>
                <ws>gtk</ws>
                <arch>x86_64</arch>
              </environment>
              <environment>
                <os>win32</os>
                <ws>win32</ws>
                <arch>x86_64</arch>
              </environment>
            </environments>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
Alexander Diewald's avatar
Alexander Diewald committed
154
</project>