зеркало из https://github.com/mozilla/smarthome.git
477 строки
16 KiB
XML
477 строки
16 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<prerequisites>
|
|
<maven>3.0</maven>
|
|
</prerequisites>
|
|
|
|
<groupId>org.eclipse.smarthome</groupId>
|
|
<artifactId>smarthome</artifactId>
|
|
<version>0.9.0-SNAPSHOT</version>
|
|
|
|
<name>Eclipse SmartHome</name>
|
|
|
|
<organization>
|
|
<name>Eclipse.org</name>
|
|
<url>http://www.eclipse.org/SmartHome</url>
|
|
</organization>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Eclipse Public License</name>
|
|
<url>http://www.eclipse.org/legal/epl-v10.html</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>repo.eclipse.org</id>
|
|
<name>Eclipse SmartHome Repository - Releases</name>
|
|
<url>https://repo.eclipse.org/content/repositories/smarthome-releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>repo.eclipse.org</id>
|
|
<name>Eclipse SmartHome Repository - Snapshots</name>
|
|
<url>https://repo.eclipse.org/content/repositories/smarthome-snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
|
|
<description>This is the Eclipse SmartHome project</description>
|
|
|
|
<properties>
|
|
<tycho-version>0.23.1</tycho-version>
|
|
<tycho-groupid>org.eclipse.tycho</tycho-groupid>
|
|
<xtext-version>2.9.2</xtext-version>
|
|
<karaf.version>4.0.3</karaf.version>
|
|
<build.helper.maven.plugin.version>1.8</build.helper.maven.plugin.version>
|
|
<maven.compiler.version>3.1</maven.compiler.version>
|
|
<groovy.eclipse.compiler.version>2.8.0-01</groovy.eclipse.compiler.version>
|
|
<groovy.eclipse.batch.version>2.1.5-03</groovy.eclipse.batch.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<modules>
|
|
<module>bundles</module>
|
|
<module>extensions</module>
|
|
<module>features</module>
|
|
<module>products</module>
|
|
<module>tools</module>
|
|
<module>targetplatform</module>
|
|
<module>distribution</module>
|
|
</modules>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>tycho-maven-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>target-platform-configuration</artifactId>
|
|
<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_64</arch>
|
|
</environment>
|
|
</environments>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}/xtend-gen</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>.gitignore</exclude>
|
|
</excludes>
|
|
</fileset>
|
|
<fileset>
|
|
<directory>${basedir}/src/main/generated-sources/xtend</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>.gitignore</exclude>
|
|
</excludes>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eclipse.xtend</groupId>
|
|
<artifactId>xtend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<javaSourceVersion>1.7</javaSourceVersion>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>tycho-compiler-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<configuration>
|
|
<encoding>UTF-8</encoding>
|
|
<source>1.7</source>
|
|
<target>1.7</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>target-platform-configuration</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<configuration>
|
|
<!--
|
|
<resolver>p2</resolver>
|
|
<ignoreTychoRepositories>true</ignoreTychoRepositories>
|
|
-->
|
|
<pomDependencies>consider</pomDependencies>
|
|
<target>
|
|
<artifact>
|
|
<groupId>org.eclipse.smarthome</groupId>
|
|
<artifactId>targetplatform</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>smarthome</classifier>
|
|
</artifact>
|
|
</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>tycho-surefire-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
<configuration>
|
|
<failIfNoTests>false</failIfNoTests>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>${build.helper.maven.plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/main/groovy</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>add-test-source</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>add-test-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/test/groovy</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<version>3.0.1</version>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<supportedProjectTypes>
|
|
<supportedProjectType>jar</supportedProjectType>
|
|
<supportedProjectType>bundle</supportedProjectType>
|
|
<supportedProjectType>eclipse-plugin</supportedProjectType>
|
|
</supportedProjectTypes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven.compiler.version}</version>
|
|
<configuration>
|
|
<compilerId>groovy-eclipse-compiler</compilerId>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-eclipse-compiler</artifactId>
|
|
<version>${groovy.eclipse.compiler.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-eclipse-batch</artifactId>
|
|
<version>${groovy.eclipse.batch.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.mycila</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
<version>2.10</version>
|
|
<configuration>
|
|
<basedir>${basedir}</basedir>
|
|
<header>src/etc/header.txt</header>
|
|
<quiet>false</quiet>
|
|
<failIfMissing>true</failIfMissing>
|
|
<strictCheck>true</strictCheck>
|
|
<aggregate>true</aggregate>
|
|
<includes>
|
|
<include>**/org/eclipse/smarthome/**/*.java</include>
|
|
<include>**/org/eclipse/smarthome/**/*.groovy</include>
|
|
<include>**/feature.xml</include>
|
|
<include>**/OSGI-INF/*.xml</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>**/org/eclipse/smarthome/protocols/**</exclude>
|
|
<exclude>target/**</exclude>
|
|
<exclude>**/pom.xml</exclude>
|
|
<exclude>_*.java</exclude>
|
|
</excludes>
|
|
<useDefaultExcludes>true</useDefaultExcludes>
|
|
<properties>
|
|
<year>2015</year>
|
|
</properties>
|
|
<encoding>UTF-8</encoding>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eclipse.xtend</groupId>
|
|
<artifactId>xtend-maven-plugin</artifactId>
|
|
<version>${xtext-version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>xtend-install-debug-info</goal>
|
|
<goal>testCompile</goal>
|
|
<goal>xtend-test-install-debug-info</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
|
|
<testOutputDirectory>${basedir}/xtend-gen</testOutputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>${tycho-groupid}</groupId>
|
|
<artifactId>tycho-versions-plugin</artifactId>
|
|
<version>${tycho-version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>sign</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.eclipse.cbi.maven.plugins</groupId>
|
|
<artifactId>eclipse-jarsigner-plugin</artifactId>
|
|
<version>1.0.5</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>QA</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.7.4.201502262128</version>
|
|
<configuration>
|
|
<dataFile>${session.executionRootDirectory}/target/coverage.jacoco</dataFile>
|
|
<destFile>${session.executionRootDirectory}/target/coverage.jacoco</destFile>
|
|
<append>true</append>
|
|
<excludes>
|
|
<exclude>**/*Test.*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>default-prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-prepare-agent-integration</id>
|
|
<goals>
|
|
<goal>prepare-agent-integration</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<!-- We need this profile in order to set '-Xdoclint:none' as a project property which will be used later by maven-javadoc-plugin as an 'additionalparam' to be passed to the javadoc.exe. -->
|
|
<!-- This option will be used only if the JDK version is 1.8 or higher. Earlier versions of javadoc.exe does not accept this option. -->
|
|
<profile>
|
|
<id>doclint-java8-disable</id>
|
|
<activation>
|
|
<jdk>[1.8,)</jdk>
|
|
</activation>
|
|
<properties>
|
|
<javadoc.opts>-Xdoclint:none</javadoc.opts>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>javadoc</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>aggregate</id>
|
|
<goals>
|
|
<goal>aggregate-jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<!-- 'javadoc.opts' project property is set by the 'doclint-java8-disable' profile. It is important to keep 'javadoc' profile declaration after the declaration of 'doclint-java8-disable' profile. -->
|
|
<additionalparam>${javadoc.opts}</additionalparam>
|
|
<excludePackageNames>*.internal.*,nl.*</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>${build.helper.maven.plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-artifacts</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${project.build.outputDirectory}/${project.artifactId}-${project.version}.jar</file>
|
|
<type>jar</type>
|
|
<classifier>javadoc</classifier>
|
|
</artifact>
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>tycho-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/groups/public/</url>
|
|
</pluginRepository>
|
|
<pluginRepository>
|
|
<id>cbi-releases</id>
|
|
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
|
|
</pluginRepository>
|
|
<pluginRepository>
|
|
<id>buchen-maven-repo</id>
|
|
<url>http://buchen.github.io/maven-repo</url>
|
|
<layout>default</layout>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>eclipse</id>
|
|
<name>Eclipse Snapshot Repository</name>
|
|
<layout>default</layout>
|
|
<url>https://repo.eclipse.org/content/repositories/snapshots/</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
|
|
</project>
|