<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"> | |
<!-- This POM file defines the general TYCHO configuration --> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.eclipse.papyrus.moka.releng</groupId> | |
<artifactId>org.eclipse.papyrus.moka.releng.configuration</artifactId> | |
<version>2.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<!-- Properties --> | |
<properties> | |
<tycho-version>0.25.0</tycho-version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<tycho.compiler.source.version>1.8</tycho.compiler.source.version> | |
<tycho.compiler.target.version>1.8</tycho.compiler.target.version> | |
</properties> | |
<pluginRepositories> | |
<!-- Location to find out maven plugins --> | |
<pluginRepository> | |
<id>org.eclipse.cbi.maven.plugins</id> | |
<name>Eclipse CBI</name> | |
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
</pluginRepository> | |
</pluginRepositories> | |
<build> | |
<!-- Shared plugins configuration --> | |
<pluginManagement> | |
<plugins> | |
<!-- Tycho maven integration configuration --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-maven-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<extensions>true</extensions> | |
</plugin> | |
<!-- Tycho compiler configuration --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-compiler-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<configuration> | |
<source>${tycho.compiler.source.version}</source> | |
<target>${tycho.compiler.target.version}</target> | |
</configuration> | |
</plugin> | |
<!-- Tycho target platform manager configuration --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>target-platform-configuration</artifactId> | |
<version>${tycho-version}</version> | |
<configuration> | |
<!-- Enabled target platform --> | |
<target> | |
<artifact> | |
<groupId>org.eclipse.papyrus.moka.releng.platforms</groupId> | |
<artifactId>org.eclipse.papyrus.moka.releng.platforms.neon</artifactId> | |
<version>2.0.0-SNAPSHOT</version> | |
</artifact> | |
</target> | |
<environments> | |
<environment> | |
<os>linux</os> | |
<ws>gtk</ws> | |
<arch>x86</arch> | |
</environment> | |
<environment> | |
<os>linux</os> | |
<ws>gtk</ws> | |
<arch>x86_64</arch> | |
</environment> | |
<environment> | |
<os>win32</os> | |
<ws>win32</ws> | |
<arch>x86</arch> | |
</environment> | |
<environment> | |
<os>win32</os> | |
<ws>win32</ws> | |
<arch>x86_64</arch> | |
</environment> | |
<environment> | |
<os>macosx</os> | |
<ws>cocoa</ws> | |
<arch>x86_64</arch> | |
</environment> | |
</environments> | |
</configuration> | |
</plugin> | |
<!-- Tycho update site producer configuration --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-p2-repository-plugin</artifactId> | |
<version>${tycho-version}</version> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<!-- Declare plugins used during the build --> | |
<plugins> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-maven-plugin</artifactId> | |
</plugin> | |
<!-- Tycho compiler --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-compiler-plugin</artifactId> | |
</plugin> | |
<!-- Target platform plug-in configuration. The specified is used to resolve | |
dependencies at build time --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>target-platform-configuration</artifactId> | |
</plugin> | |
<!-- Repository build --> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-p2-repository-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
<!-- Moka custom builds --> | |
<profiles> | |
<!-- Release profile --> | |
<profile> | |
<id>release</id> | |
</profile> | |
<profile> | |
<id>quality</id> | |
<build> | |
<plugins> | |
<!-- Static code analysis --> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>findbugs-maven-plugin</artifactId> | |
<version>3.0.0</version> | |
<configuration> | |
<failOnError>false</failOnError> | |
<!-- Maximize memory allocated to bug detection analysis --> | |
<effort>Max</effort> | |
<!-- Reports all bugs (other values are medium and max) --> | |
<threshold>medium</threshold> | |
<!-- Produces XML report --> | |
<xmlOutput>true</xmlOutput> | |
<!-- Configures the directory in which the XML report is created --> | |
<findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<!-- Analysis is triggered at compile time --> | |
<phase>compile</phase> | |
<goals> | |
<goal>check</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |