Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

247 lines (236 sloc) 8.316 kb
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2012 Jason van Zyl
~ All rights reserved. This program and the accompanying materials
~ are made available under the terms of the Eclipse Public License v1.0
~ which accompanies this distribution, and is available at
~ http://www.eclipse.org/legal/epl-v10.html
-->
<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>io.tesla</groupId>
<artifactId>tesla</artifactId>
<version>4</version>
</parent>
<groupId>io.tesla.tycho</groupId>
<artifactId>tycho-support</artifactId>
<version>0.0.2</version>
<name>Tycho Base</name>
<packaging>pom</packaging>
<description>
This POM serves as the base of a Tycho project which has plugins, tests, and deployable features. Everything
that is required is provided and parameterized by specifying properties in the host POM.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
|
| These are the values that can be parameterized to control deploy and release behaviour. By default
| we are setup to deploy on the Tesla.io infrastructure.
|
-->
<tychoVersion>0.15.0</tychoVersion>
<serverIdInSettingsXml>m2e.extras</serverIdInSettingsXml>
<repositoryUrl>http://repository.tesla.io:8081/nexus/service/local/repositories/m2e.extras/content-compressed/</repositoryUrl>
<repositoryPath>${repositoryPathId}/${unqualifiedVersion}/N/${unqualifiedVersion}.${buildQualifier}</repositoryPath>
</properties>
<scm>
<connection>scm:git:git@github.com/etesla/tycho-support.git</connection>
<developerConnection>scm:git:ssh://git@github.com/etesla/tycho-support.git</developerConnection>
<url>http://github.com/etesla/tycho-support</url>
</scm>
<repositories>
<repository>
<id>juno</id>
<url>http://download.eclipse.org/releases/juno</url>
<layout>p2</layout>
</repository>
<repository>
<id>orbit</id>
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20120526062928/repository/</url>
<layout>p2</layout>
</repository>
</repositories>
<build>
<plugins>
<!-- These plugins are required for all Tycho-based builds -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tychoVersion}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tychoVersion}</version>
<configuration>
<resolver>p2</resolver>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- Important for M2E self-hosting -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<!--
|
| We only care about deploying the update site. Disable the deployment of the standard
| Maven resources and only deploy the update site in the feature build which is defined
| in the feature-build profile below.
|
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>sun-jvm</id>
<activation>
<property>
<name>java.vendor.url</name>
<value>http://java.sun.com/</value>
</property>
</activation>
<properties>
<tycho.test.jvmArgs>-Xmx512m -XX:MaxPermSize=256m</tycho.test.jvmArgs>
</properties>
</profile>
<profile>
<id>osx</id>
<activation>
<property>
<name>java.vendor.url</name>
<value>http://www.apple.com/</value>
</property>
</activation>
<properties>
<tycho.test.jvmArgs>-Xmx512m -XX:MaxPermSize=256m -Dosgi.ws=cocoa -XstartOnFirstThread</tycho.test.jvmArgs>
<osgi.ws>cocoa</osgi.ws>
</properties>
</profile>
<profile>
<id>sign</id>
<activation>
<property><name>jarsigner.alias</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
|
| Feature build profile will only be activated in the presence of a feature.xml file in
| the base directory of the project.
|
-->
<profile>
<id>feature-build</id>
<activation>
<file>
<exists>feature.xml</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<deployableFeature>true</deployableFeature>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tychoVersion}</version>
<executions>
<execution>
<id>categorization</id>
<phase>package</phase>
<goals>
<goal>category-p2-metadata</goal>
</goals>
</execution>
</executions>
<configuration>
<metadataRepositoryName>${p2MetadataName}</metadataRepositoryName>
<artifactRepositoryName>${p2MetadataName}</artifactRepositoryName>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
|
| Only deploy the update site zip to the server using the maven-upload-plugin.
|
-->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>maven-upload-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<id>publish-site</id>
<phase>deploy</phase>
<goals>
<goal>upload-file</goal>
</goals>
<configuration>
<file>${project.build.directory}/${project.artifactId}-${project.version}-site.zip</file>
<serverId>${serverIdInSettingsXml}</serverId>
<repositoryUrl>${repositoryUrl}</repositoryUrl>
<repositoryPath>${repositoryPath}</repositoryPath>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Jump to Line
Something went wrong with that request. Please try again.