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</tycho.version>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <!-- Not needed, as an explicit target definition is provided by releng/net.mograsim.target/
21 This provides a uniform configuration, and we don't get weird errors. -->
22 <!-- <repositories> <repository> <id>eclipse-release</id> <url>http://download.eclipse.org/releases/2019-06</url>
23 <layout>p2</layout> </repository> </repositories> -->
27 <!-- Maven Tycho is our main build plugin for the Eclipse/OSGi environment -->
29 <groupId>org.eclipse.tycho</groupId>
30 <artifactId>tycho-maven-plugin</artifactId>
31 <version>${tycho.version}</version>
32 <extensions>true</extensions>
35 <!-- We might use this in future to change versions comfortably -->
36 <!-- <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-versions-plugin</artifactId>
37 <version>${tycho.version}</version> <executions> <execution> <id>set-all-versions</id>
38 <phase>post-clean</phase> <goals> <goal>set-version</goal> <goal>update-eclipse-metadata</goal>
39 </goals> <configuration> <newVersion>0.2.0</newVersion> <properties>revision</properties>
40 </configuration> </execution> </executions> </plugin> -->
42 <!--Enable the replacement of the SNAPSHOT version in the final feature/product
45 <groupId>org.eclipse.tycho</groupId>
46 <artifactId>target-platform-configuration</artifactId>
47 <version>${tycho.version}</version>
51 <groupId>net.mograsim</groupId>
52 <artifactId>net.mograsim.target</artifactId>
53 <version>${revision}${changelist}</version>
76 <!-- This makes maven generate proper POMs without the revision placeholder,
77 this is related to the ".flattened-pom.xml" mentioned in .gitignore -->
79 <groupId>org.codehaus.mojo</groupId>
80 <artifactId>flatten-maven-plugin</artifactId>
81 <version>1.1.0</version>
83 <updatePomFile>true</updatePomFile>
84 <flattenMode>resolveCiFriendliesOnly</flattenMode>
89 <phase>process-resources</phase>
95 <id>flatten.clean</id>
104 <!-- Generate sources for plugins and features automatically -->
105 <!-- (this includes all three following plugins) -->
107 <groupId>org.eclipse.tycho</groupId>
108 <artifactId>tycho-source-plugin</artifactId>
109 <version>${tycho.version}</version>
112 <id>plugin-source</id>
114 <goal>plugin-source</goal>
120 <groupId>org.eclipse.tycho.extras</groupId>
121 <artifactId>tycho-source-feature-plugin</artifactId>
122 <version>${tycho.version}</version>
125 <id>source-feature</id>
126 <phase>package</phase>
128 <goal>source-feature</goal>
134 <!-- IMPORTANT: List of plugins without any sources to avoid errors -->
135 <plugin id="net.mograsim.plugin.branding" />
136 <plugin id="net.mograsim.plugin.docs" />
141 <groupId>org.eclipse.tycho</groupId>
142 <artifactId>tycho-p2-plugin</artifactId>
143 <version>${tycho.version}</version>
146 <id>attach-p2-metadata</id>
147 <phase>package</phase>
149 <goal>p2-metadata</goal>