diff options
author | Uwe Stieber | 2012-03-09 09:38:55 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-03-09 09:38:55 +0000 |
commit | 6b48a912136e51eeb93170f1b70f730dd90e1e4a (patch) | |
tree | c01e86985fd83fe329df3334be44abc324efb0d2 /admin | |
parent | c1aee45c863a6a9f1b49d502286a43b6738be44f (diff) | |
download | org.eclipse.tcf-6b48a912136e51eeb93170f1b70f730dd90e1e4a.tar.gz org.eclipse.tcf-6b48a912136e51eeb93170f1b70f730dd90e1e4a.tar.xz org.eclipse.tcf-6b48a912136e51eeb93170f1b70f730dd90e1e4a.zip |
Maven: Rework build files to cleanup structure and increase maintainability
Diffstat (limited to 'admin')
-rw-r--r-- | admin/findbugs-exclude.xml | 22 | ||||
-rw-r--r-- | admin/pom-build.xml | 64 | ||||
-rw-r--r-- | admin/pom-config.xml | 220 |
3 files changed, 306 insertions, 0 deletions
diff --git a/admin/findbugs-exclude.xml b/admin/findbugs-exclude.xml new file mode 100644 index 000000000..7c72a36c8 --- /dev/null +++ b/admin/findbugs-exclude.xml @@ -0,0 +1,22 @@ +<FindBugsFilter> + <!-- Ignore all ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD violations in bundle activators --> + <Match> + <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/> + <Or> + <Method name="start" params="org.osgi.framework.BundleContext" returns="void"/> + <Method name="stop" params="org.osgi.framework.BundleContext" returns="void"/> + </Or> + </Match> + + <!-- Ignore all NM_SAME_SIMPLE_NAME_AS_SUPERCLASS violations --> + <Match> + <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/> + </Match> + + <!-- Ignore all EI_EXPOSE_REP violations for IAdapterFactory#getAdapterList() --> + <Match> + <Bug pattern="EI_EXPOSE_REP"/> + <Method name="getAdapterList"/> + </Match> + +</FindBugsFilter> diff --git a/admin/pom-build.xml b/admin/pom-build.xml new file mode 100644 index 000000000..55b38a550 --- /dev/null +++ b/admin/pom-build.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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> + + <parent> + <groupId>org.eclipse.tcf</groupId> + <artifactId>org.eclipse.tcf.maven-config</artifactId> + <version>1.0.0-SNAPSHOT</version> + <relativePath>pom-config.xml</relativePath> + </parent> + + <groupId>org.eclipse.tcf</groupId> + <artifactId>org.eclipse.tcf.maven-build</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + <name>TCF and Target Explorer, Maven Build Master</name> + + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>target-platform-configuration</artifactId> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-source-plugin</artifactId> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>findbugs</id> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>codeCoverage</id> + + <build> + <plugins> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> diff --git a/admin/pom-config.xml b/admin/pom-config.xml new file mode 100644 index 000000000..ac103ee6b --- /dev/null +++ b/admin/pom-config.xml @@ -0,0 +1,220 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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> + + <prerequisites> + <maven>3.0</maven> + </prerequisites> + + <groupId>org.eclipse.tcf</groupId> + <artifactId>org.eclipse.tcf.maven-config</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + <name>TCF and Target Explorer, Maven Configuration Master</name> + + <properties> + <!-- Define version id's to be used in the plugins section --> + <tycho-version>0.14.0</tycho-version> + <maven-resources-version>2.4.1</maven-resources-version> + <maven-antrun-version>1.3</maven-antrun-version> + <findbugs-version>2.4.1-SNAPSHOT</findbugs-version> + <jacoco-version>0.5.6.201201232323</jacoco-version> + + <!-- Common global properties --> + <adminDir>${env.WORKSPACE}/admin</adminDir> + + <!-- P2 repository URL's --> + <platform-version>3.8milestones</platform-version> + <platform-site>http://download.eclipse.org/eclipse/updates/${platform-version}</platform-site> + <cdt-version>juno</cdt-version> + <cdt-site>http://download.eclipse.org/tools/cdt/builds/${cdt-version}/nightly</cdt-site> + <tm-version>3.3</tm-version> + <tm-site>http://download.eclipse.org/tm/updates/${tm-version}</tm-site> + <rxtx-site>http://rxtx.qbang.org/eclipse</rxtx-site> + </properties> + + <licenses> + <license> + <name>Eclipse Public License v1.0</name> + <comments> + 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.htm + </comments> + </license> + </licenses> + + <repositories> + <repository> + <id>platform-${platform-version}</id> + <url>${platform-site}</url> + <layout>p2</layout> + </repository> + <repository> + <id>cdt</id> + <url>${cdt-site}</url> + <layout>p2</layout> + </repository> + <repository> + <id>tm</id> + <url>${tm-site}</url> + <layout>p2</layout> + </repository> + <repository> + <id>rxtx</id> + <url>${rxtx-site}</url> + <layout>p2</layout> + </repository> + </repositories> + + <pluginRepositories> + <pluginRepository> + <id>sonatype</id> + <url>https://repository.sonatype.org/content/repositories/public</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> + + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-maven-plugin</artifactId> + <version>${tycho-version}</version> + <extensions>true</extensions> + </plugin> + </plugins> + <pluginManagement> + <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> + <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</arch> + </environment> + <environment> + <os>macosx</os> + <ws>cocoa</ws> + <arch>x86_64</arch> + </environment> + </environments> + <resolver>p2</resolver> + <ignoreTychoRepositories>true</ignoreTychoRepositories> + <pomDependencies>consider</pomDependencies> + </configuration> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-compiler-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <encoding>UTF-8</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-source-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <encoding>UTF-8</encoding> + </configuration> + <executions> + <execution> + <id>plugin-source</id> + <goals> + <goal>plugin-source</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-packaging-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <strictBinIncludes>false</strictBinIncludes> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-version}</version> + <configuration> + <encoding>ISO-8859-1</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>${maven-antrun-version}</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <version>${findbugs-version}</version> + <configuration> + <encoding>UTF-8</encoding> + <effort>Max</effort> + <threshold>Low</threshold> + <xmlOutput>true</xmlOutput> + <failOnError>false</failOnError> + <excludeFilterFile>${adminDir}/findbugs-exclude.xml</excludeFilterFile> + </configuration> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${jacoco-version}</version> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> |