1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>net.mograsim</groupId>
6 <artifactId>net.mograsim.configuration</artifactId>
7 <version>${revision}${changelist}</version>
8 <packaging>pom</packaging>
11 <!-- Mograsim variables, see https://maven.apache.org/maven-ci-friendly.html -->
12 <revision>0.1.0</revision>
13 <changelist>-SNAPSHOT</changelist>
15 <java.version>11</java.version> <!-- currently unused -->
16 <tycho.version>1.5.0-SNAPSHOT</tycho.version>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 <!-- currently necessary because we are using a SNAPSHOT build of tycho -->
23 <id>tycho-snapshots</id>
24 <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
26 <enabled>true</enabled>
29 <enabled>true</enabled>
34 <!-- Not needed, as an explicit target definition is provided by releng/net.mograsim.target/
35 This provides a uniform configuration, and we don't get weird errors. -->
36 <!-- <repositories> <repository> <id>eclipse-release</id> <url>http://download.eclipse.org/releases/2019-06</url>
37 <layout>p2</layout> </repository> </repositories> -->
41 <!-- Maven Tycho is our main build plugin for the Eclipse/OSGi environment -->
43 <groupId>org.eclipse.tycho</groupId>
44 <artifactId>tycho-maven-plugin</artifactId>
45 <version>${tycho.version}</version>
46 <extensions>true</extensions>
49 <!-- We might use this in future to change versions comfortably -->
50 <!-- <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-versions-plugin</artifactId>
51 <version>${tycho.version}</version> <executions> <execution> <id>set-all-versions</id>
52 <phase>post-clean</phase> <goals> <goal>set-version</goal> <goal>update-eclipse-metadata</goal>
53 </goals> <configuration> <newVersion>0.2.0</newVersion> <properties>revision</properties>
54 </configuration> </execution> </executions> </plugin> -->
56 <!--Enable the replacement of the SNAPSHOT version in the final feature/product
59 <groupId>org.eclipse.tycho</groupId>
60 <artifactId>target-platform-configuration</artifactId>
61 <version>${tycho.version}</version>
65 <groupId>net.mograsim</groupId>
66 <artifactId>net.mograsim.target</artifactId>
67 <version>${revision}${changelist}</version>
90 <!-- This makes maven generate proper POMs without the revision placeholder,
91 this is related to the ".flattened-pom.xml" mentioned in .gitignore -->
93 <groupId>org.codehaus.mojo</groupId>
94 <artifactId>flatten-maven-plugin</artifactId>
95 <version>1.1.0</version>
97 <updatePomFile>true</updatePomFile>
98 <flattenMode>resolveCiFriendliesOnly</flattenMode>
103 <phase>process-resources</phase>
109 <id>flatten.clean</id>
118 <!-- Generate sources for plugins and features automatically -->
119 <!-- (this includes all three following plugins) -->
121 <groupId>org.eclipse.tycho</groupId>
122 <artifactId>tycho-source-plugin</artifactId>
123 <version>${tycho.version}</version>
126 <id>plugin-source</id>
128 <goal>plugin-source</goal>
134 <groupId>org.eclipse.tycho.extras</groupId>
135 <artifactId>tycho-source-feature-plugin</artifactId>
136 <version>${tycho.version}</version>
139 <id>source-feature</id>
140 <phase>package</phase>
142 <goal>source-feature</goal>
148 <!-- IMPORTANT: List of plugins without any sources to avoid errors -->
149 <plugin id="net.mograsim.plugin.branding" />
150 <plugin id="net.mograsim.plugin.docs" />
155 <groupId>org.eclipse.tycho</groupId>
156 <artifactId>tycho-p2-plugin</artifactId>
157 <version>${tycho.version}</version>
160 <id>attach-p2-metadata</id>
161 <phase>package</phase>
163 <goal>p2-metadata</goal>