| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2017, 2018 Willink Transformations and others. |
| |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v2.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v20.html |
| --> |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.eclipse.uml2</groupId> |
| <artifactId>org.eclipse.uml2.releng.tycho</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| |
| <licenses> |
| <license> |
| <name>Eclipse Public License v2.0</name> |
| <comments> |
| All rights reserved. |
| |
| This program and the accompanying materials are made |
| available under the terms of the Eclipse Public License v2.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.htm |
| </comments> |
| </license> |
| </licenses> |
| |
| <properties> |
| <project.buildId>org.eclipse.uml2</project.buildId> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> |
| <buildTimestamp>${maven.build.timestamp}</buildTimestamp> |
| <buildId>${buildType}${buildTimestamp}</buildId> |
| |
| <source-java-version>1.5</source-java-version> |
| <java-source-encoding>UTF-8</java-source-encoding> |
| <resource-encoding>UTF-8</resource-encoding> |
| <os-jvm-flags/> |
| |
| <tycho.scmUrl>scm:git:https://git.eclipse.org/c/uml2/org.eclipse.uml2.git</tycho.scmUrl> |
| |
| <tycho-version>2.7.5</tycho-version> |
| <tycho-extras-version>${tycho-version}</tycho-extras-version> |
| |
| <jarsigner-version>1.3.2</jarsigner-version> |
| |
| <maven-clean-version>2.5</maven-clean-version> |
| <maven-install-version>2.5.1</maven-install-version> |
| <maven-deploy-version>2.8.1</maven-deploy-version> |
| <maven-site-version>3.4</maven-site-version> |
| <maven-antrun-version>1.7</maven-antrun-version> |
| <maven-resources-version>2.6</maven-resources-version> |
| <maven-surefire-version>2.22.1</maven-surefire-version> |
| |
| </properties> |
| |
| <modules> |
| <module>../../doc</module> |
| <module>../../examples</module> |
| <module>../../features</module> |
| <module>../../plugins</module> |
| <module>../../releng</module> |
| <module>../../tests</module> |
| </modules> |
| |
| <distributionManagement> |
| <repository> |
| <id>repo.eclipse.org</id> |
| <name>UML2 Repository - Releases</name> |
| <url>https://repo.eclipse.org/content/repositories/uml2-releases/</url> |
| </repository> |
| <snapshotRepository> |
| <id>repo.eclipse.org</id> |
| <name>UML2 Repository - Snapshots</name> |
| <url>https://repo.eclipse.org/content/repositories/uml2-snapshots/</url> |
| </snapshotRepository> |
| </distributionManagement> |
| |
| <build> |
| <!-- This is for checkstyle and PMD --> |
| <sourceDirectory>src</sourceDirectory> |
| |
| <!-- See Bug 526404 This enables maven-surefire-plugin to do standalone tests AND tycho-surefire-plugin to do plugin tests --> |
| <testOutputDirectory>${project.build.directory}/classes</testOutputDirectory> |
| |
| <plugins> |
| |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-maven-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <extensions>true</extensions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <includePackedArtifacts>true</includePackedArtifacts> |
| <resolver>p2</resolver> |
| <dependency-resolution> |
| <extraRequirements> |
| <requirement> |
| <type>eclipse-plugin</type> |
| <id>org.apache.ant</id> |
| <versionRange>0.0.0</versionRange> |
| </requirement> |
| </extraRequirements> |
| </dependency-resolution> |
| <environments> |
| <environment> |
| <os>win32</os> |
| <ws>win32</ws> |
| <arch>x86_64</arch> |
| </environment> |
| <environment> |
| <os>linux</os> |
| <ws>gtk</ws> |
| <arch>x86_64</arch> |
| </environment> |
| <environment> |
| <os>macosx</os> |
| <ws>cocoa</ws> |
| <arch>x86_64</arch> |
| </environment> |
| </environments> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-source-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <archive> |
| <addMavenDescriptor>false</addMavenDescriptor> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <id>plugin-source</id> |
| <goals> |
| <goal>plugin-source</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.eclipse.tycho.extras</groupId> |
| <artifactId>tycho-source-feature-plugin</artifactId> |
| <version>${tycho-extras-version}</version> |
| <configuration> |
| <archive> |
| <addMavenDescriptor>false</addMavenDescriptor> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <id>source-feature</id> |
| <phase>package</phase> |
| <goals> |
| <goal>source-feature</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-packaging-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <archive> |
| <addMavenDescriptor>false</addMavenDescriptor> |
| </archive> |
| <format>'v'yyyyMMdd'-'HHmm</format> |
| <sourceReferences> |
| <generate>true</generate> |
| </sourceReferences> |
| <!--timestampProvider>jgit</timestampProvider--> |
| <jgit.ignore> |
| pom.xml |
| .polyglot.build.properties |
| </jgit.ignore> |
| <jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.tycho.extras</groupId> |
| <artifactId>tycho-sourceref-jgit</artifactId> |
| <version>${tycho-extras-version}</version> |
| </dependency> |
| <!--dependency> |
| <groupId>org.eclipse.tycho.extras</groupId> |
| <artifactId>tycho-buildtimestamp-jgit</artifactId> |
| <version>${tycho-extras-version}</version> |
| </dependency--> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-p2-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <executions> |
| <execution> |
| <id>attached-p2-metadata</id> |
| <phase>package</phase> |
| <goals> |
| <goal>p2-metadata</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-surefire-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <argLine>${tycho.testArgLine} -Xms40m -Xmx1G ${os-jvm-flags}</argLine> |
| <failIfNoTests>false</failIfNoTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>${maven-antrun-version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${maven-resources-version}</version> |
| <configuration> |
| <encoding>${resource-encoding}</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-pmd-plugin</artifactId> |
| <version>${maven-pmd-version}</version> |
| <configuration> |
| <sourceEncoding>${java-source-encoding}</sourceEncoding> |
| <targetJdk>${target-java-version}</targetJdk> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${maven-checkstyle-version}</version> |
| <configuration> |
| <encoding>${java-source-encoding}</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${maven-surefire-version}</version> |
| <!-- |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.surefire</groupId> |
| <artifactId>surefire-junit4</artifactId> |
| <version>${maven-surefire-version}</version> |
| </dependency> |
| </dependencies> |
| --> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <profiles> |
| <!-- Target platforms are located in org.eclipse.uml2.releng.tycho/targetPlatforms. --> |
| <profile> |
| <id>nightly</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <buildType>N</buildType> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <target> |
| <artifact> |
| <groupId>org.eclipse.uml2</groupId> |
| <artifactId>org.eclipse.uml2.releng.tycho</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <classifier>targetPlatforms/nightly</classifier> |
| </artifact> |
| </target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>integration</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <buildType>I</buildType> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <target> |
| <artifact> |
| <groupId>org.eclipse.uml2</groupId> |
| <artifactId>org.eclipse.uml2.releng.tycho</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <classifier>targetPlatforms/integration</classifier> |
| </artifact> |
| </target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>stable</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <buildType>S</buildType> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <configuration> |
| <target> |
| <artifact> |
| <groupId>org.eclipse.uml2</groupId> |
| <artifactId>org.eclipse.uml2.releng.tycho</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <classifier>targetPlatforms/stable</classifier> |
| </artifact> |
| </target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>release</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <buildType>R</buildType> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <target> |
| <artifact> |
| <groupId>org.eclipse.uml2</groupId> |
| <artifactId>org.eclipse.uml2.releng.tycho</artifactId> |
| <version>1.1.0-SNAPSHOT</version> |
| <classifier>targetPlatforms/release</classifier> |
| </artifact> |
| </target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>sign</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.cbi.maven.plugins</groupId> |
| <artifactId>eclipse-jarsigner-plugin</artifactId> |
| <version>${jarsigner-version}</version> |
| <executions> |
| <execution> |
| <id>sign</id> |
| <phase>package</phase> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-p2-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <executions> |
| <execution> |
| <id>p2-metadata</id> |
| <goals> |
| <goal>p2-metadata</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <defaultP2Metadata>false</defaultP2Metadata> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <pluginRepositories> |
| <pluginRepository> |
| <id>cbi</id> |
| <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| </pluginRepository> |
| </pluginRepositories> |
| </profile> |
| <profile> |
| <id>update-branding-plugins-about.mappings</id> |
| <activation> |
| <file> |
| <exists>${basedir}/about.mappings</exists> |
| </file> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>process-about.mappings</id> |
| <phase>prepare-package</phase> |
| <configuration> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| <overwrite>true</overwrite> |
| <resources> |
| <resource> |
| <directory>${basedir}</directory> |
| <includes> |
| <include>about.mappings</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-packaging-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <additionalFileSets> |
| <fileSet> |
| <directory>${project.build.directory}</directory> |
| <includes> |
| <include>about.mappings</include> |
| </includes> |
| </fileSet> |
| </additionalFileSets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |