blob: 64628ad6cd41425cde8b6a6335ad8419210978e7 [file] [log] [blame]
<%--
Copyright (c) 2020 Eclipse contributors and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
--%>
<%@jet package="org.eclipse.justj.codegen.templates.fragment" class="POMXML" imports="org.eclipse.justj.codegen.model.*" builder="StringBuilder builder = new StringBuilder()" minimize="true"%>
<%Variant variant = (Variant)argument;
String os = variant.getOs();
String arch = variant.getArch();
JVM jvm = variant.getJVM();
String jvmName = jvm.getName();
Model model = jvm.getModel();
String modelName = model.getName();
String fullName = modelName + '.' + jvmName + '.' + os + '.' + arch;
String version = jvm.getVersion();%>
<?xml version="1.0" encoding="UTF-8"?>
<%@include file="../copyright.xml.jetinc"%>
<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>
<parent>
<groupId><%=modelName%></groupId>
<artifactId><%=modelName%>.plugins</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../releng/<%=modelName%>.parent/plugins</relativePath>
</parent>
<groupId><%=modelName%></groupId>
<artifactId><%=fullName%></artifactId>
<version><%=version%>-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<build>
<resources>
<resource>
<directory>.</directory>
<filtering>true</filtering>
<includes>
<include>about.mappings</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<environments>
<environment>
<os><%=os%></os>
<arch><%=arch%></arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</project>