<?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.openhab</groupId>
  <artifactId>openhab</artifactId>
  <version>0.9.1-SNAPSHOT</version>

  <name>openHAB</name>

  <organization>
    <name>openHAB.org</name>
    <url>http://www.openhab.org</url>
  </organization>

  <licenses>
    <license>
      <name>GNU General Public License</name>
      <url>http://www.gnu.org/licenses/gpl.html</url>
      <comments>
        Additional permission under GNU GPL version 3 section 7
        
        If you modify this Program, or any covered work, by linking or 
        combining it with Eclipse (or a modified version of that library),
        containing parts covered by the terms of the Eclipse Public License
        (EPL), the licensors of this Program grant you additional permission
        to convey the resulting work.
      </comments>
    </license>
  </licenses>

  <scm>
    <connection>scm:hg:https://openhab.googlecode.com/hg/</connection>
    <developerConnection>scm:svn:https://openhab.googlecode.com/hg/</developerConnection>
    <url>http://code.google.com/p/openhab/source/browse/</url>
  </scm>

  <mailingLists>
    <mailingList>
      <name>openhab Mailing List</name>
      <post>openhab@googlegroups.com</post>
      <subscribe>http://groups.google.com/group/openhab</subscribe>
      <unsubscribe>http://groups.google.com/group/openhab</unsubscribe>
      <archive>http://groups.google.com/group/openhab</archive>
    </mailingList>
  </mailingLists>

  <issueManagement>
    <url>http://code.google.com/p/openhab/issues/list</url>
    <system>Google Code</system>
  </issueManagement>
  
  <description>This is the open Home Automation Bus (openHAB)</description>

  <properties>
    <tycho-version>0.13.0</tycho-version>    
		<tycho-groupid>org.eclipse.tycho</tycho-groupid>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  
  <packaging>pom</packaging>

  <modules>
    <module>bundles</module>
    <module>features</module>
    <module>products</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>
        <version>${tycho-version}</version>
        <configuration>
          <resolver>p2</resolver>
					<ignoreTychoRepositories>true</ignoreTychoRepositories>
          <pomDependencies>consider</pomDependencies>          
					<target>
            <artifact>
              <groupId>org.openhab</groupId>
              <artifactId>targetplatform</artifactId>
              <version>${project.version}</version>
              <classifier>openhab</classifier>
            </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>macosx</os>
              <ws>cocoa</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
        </configuration>
      </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.0-beta-2</version>
				<configuration>
					<reportPlugins>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-project-info-reports-plugin</artifactId>
							<version>2.2</version>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-surefire-plugin</artifactId>
							<version>2.4.3</version>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<version>2.7</version>
							<configuration>
          			<aggregate>true</aggregate>
   				    </configuration>
  					</plugin>
  					<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-jxr-plugin</artifactId>
							<configuration>
          			<aggregate>true</aggregate>
   				    </configuration>
							<version>2.1</version>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-checkstyle-plugin</artifactId>
							<version>2.5</version>
			        <configuration>
			          <!--<configLocation>${settings.localRepository}/path /to/checkstyle.config</configLocation>-->
			          <enableRulesSummary>false</enableRulesSummary>
			          <xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation>
			        </configuration>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-pmd-plugin</artifactId>
							<version>2.4</version>
							<configuration>
          			<xrefLocation>${project.reporting.outputDirectory}/../xref</xrefLocation>
        			</configuration>
						</plugin>
						<plugin>
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>jdepend-maven-plugin</artifactId>
			      </plugin>
						<plugin>
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>findbugs-maven-plugin</artifactId>
			      </plugin>
					</reportPlugins>
				</configuration>
			</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.6</source>
	          <target>1.6</target>
	        </configuration>
	      </plugin>
        <plugin>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <version>1.9.0</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>**/*.java</include>
                	<include>**/feature.xml</include>
                </includes>
                <excludes>
                    <exclude>target/**</exclude>
                    <exclude>**/pom.xml</exclude>
                </excludes>
                <useDefaultExcludes>true</useDefaultExcludes>
                <properties>
                    <year>2012</year>
                </properties>
                <encoding>UTF-8</encoding>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>check</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <pluginRepositories>
    <pluginRepository>
      <id>sonatype snapshots</id>
      <url>https://repository.sonatype.org/content/repositories/snapshots/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </pluginRepository>
	  <pluginRepository>
	    <id>fornax-snapshots</id>
	    <url>http://www.fornax-platform.org/archiva/repository/snapshots/</url>
	    <snapshots>
	    	<enabled>true</enabled>
	    </snapshots>
	  </pluginRepository>
  </pluginRepositories>

	<repositories>
	  <repository>
	    <id>fornax-releases</id>
	    <url>http://fornax-platform.org/nexus/content/groups/public</url>
	    <snapshots>
	    	<enabled>false</enabled>
	    </snapshots>
	  </repository>
	</repositories>

	<!-- dependencies, which are not available in a p2-repository -->
  <dependencies>
			<dependency>
			    <groupId>org.apache.felix</groupId>
			    <artifactId>org.apache.felix.fileinstall</artifactId>
			    <version>3.1.10</version>
			</dependency>
  </dependencies>	

</project>
