| <%-- |
| 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.releng.parent.features" class="POMXML" imports="org.eclipse.justj.codegen.model.*" builder="StringBuilder builder = new StringBuilder()" minimize="true"%> |
| <%Model model = (Model)argument; |
| String name = model.getName();%> |
| <?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><%=name%></groupId> |
| <artifactId><%=name%>.parent</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <groupId><%=name%></groupId> |
| <artifactId><%=name%>.features</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| |
| <modules> |
| <%for (JVM jvm : model.getJVMs()) {%> |
| <module>../../../features/<%=name%>.<%=jvm.getName()%>-feature</module> |
| <%}%> |
| </modules> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-p2-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>default-p2-metadata-default</id> |
| <configuration> |
| <attachP2Metadata>false</attachP2Metadata> |
| </configuration> |
| </execution> |
| <execution> |
| <id>attach-p2-metadata</id> |
| <phase>package</phase> |
| <goals> |
| <goal>p2-metadata</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>pack-and-sign</id> |
| <activation> |
| <property> |
| <name>PACK_AND_SIGN</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.cbi.maven.plugins</groupId> |
| <artifactId>eclipse-jarsigner-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>sign</id> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-p2-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |