<?xml version="1.0" encoding="UTF-8" standalone="no"?><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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.openhab</groupId>
        <artifactId>pom</artifactId>
        <version>2.4.0</version>
        <relativePath/>
    </parent>

    <groupId>org.openhab.distro</groupId>
    <artifactId>pom</artifactId>
    <!-- do not delete the version here as it is required by the release process -->
    <packaging>pom</packaging>

    <name>openHAB Distribution</name>
    <description>This is the openHAB distribution</description>

    <licenses>
        <license>
            <name>Eclipse Public License</name>
            <url>http://www.eclipse.org/legal/epl-v10.html</url>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:${scm.gitBaseUrl}/openhab-distro.git</connection>
        <developerConnection>scm:git:${scm.gitBaseUrl}/openhab-distro.git</developerConnection>
        <url>https://github.com/openhab/openhab-distro</url>
        <tag>HEAD</tag>
    </scm>

    <issueManagement>
        <url>https://github.com/openhab/openhab-distro/issues</url>
        <system>Github</system>
    </issueManagement>

    <distributionManagement>
        <repository>
            <id>bintray</id>
            <url>https://api.bintray.com/maven/openhab/mvn/openhab-distro/;publish=1;override=1</url>
        </repository>
        <snapshotRepository>
            <id>jfrog</id>
            <url>https://openhab.jfrog.io/openhab/libs-snapshot-local</url>
        </snapshotRepository>
    </distributionManagement>

    <properties>
        <online.repo.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}</online.repo.version>        

        <ohc.version>2.4.0</ohc.version>
        <oh2.version>2.4.0</oh2.version>
        <oh1.version>1.13.0</oh1.version>

        <jackson.version>1.9.13</jackson.version>

        <karaf.version>4.2.1</karaf.version>
        <jetty.version>9.4.11.v20180605</jetty.version>

        <!-- provided by Karaf -->
        <dep.slf4j.api.groupId>org.slf4j</dep.slf4j.api.groupId>
        <dep.slf4j.api.artifactId>slf4j-api</dep.slf4j.api.artifactId>
        <dep.slf4j.api.version>1.7.12</dep.slf4j.api.version>

        <dep.org.osgi.compendium.split.groupId>tmp.need.a.home</dep.org.osgi.compendium.split.groupId>
        <dep.org.osgi.compendium.split.component.artifact>org.osgi.compendium.split.service.component</dep.org.osgi.compendium.split.component.artifact>
        <dep.org.osgi.compendium.split.event.artifact>org.osgi.compendium.split.service.event</dep.org.osgi.compendium.split.event.artifact>
        <dep.org.osgi.compendium.split.version>5.0.0</dep.org.osgi.compendium.split.version>
    </properties>

    <modules>
        <module>features</module>
        <module>distributions</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                    <version>${karaf.version}</version>
                    <extensions>true</extensions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.5.5</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${maven.compiler.plugin.version}</version>
                    <configuration>
                        <source>${maven.compiler.source}</source>
                        <target>${maven.compiler.target}</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>${build.helper.maven.plugin.version}</version>
                <executions>
                  <execution>
                    <id>parse-version</id>
                    <goals>
                      <goal>parse-version</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>
        <plugin><groupId>com.itemis.maven.plugins</groupId><artifactId>artifact-spy-plugin</artifactId><version>1.0.6</version><executions><execution><id>spy</id><phase>verify</phase><goals><goal>spy</goal></goals></execution></executions></plugin></plugins>
    </build>

    <pluginRepositories>
        <pluginRepository>
            <id>openhab-bintray</id>
            <name>Bintray Repository for openHAB</name>
            <url>https://dl.bintray.com/openhab/mvn/</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

    <repositories>
        
        <!-- releases -->
        <repository>
            <id>jcenter</id>
            <name>JCenter Repository</name>
            <url>https://jcenter.bintray.com/</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>

        <repository>
            <id>openhab-artifactory-release</id>
            <name>JFrog Artifactory Repository</name>
            <url>https://openhab.jfrog.io/openhab/libs-release</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>

        <!-- snapshots -->
        <repository>
            <id>openhab-artifactory-snapshot</id>
            <name>JFrog Artifactory Repository</name>
            <url>https://openhab.jfrog.io/openhab/libs-snapshot</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </repository>

    </repositories>

    <profiles>
        <profile>
            <id>prepare-release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.eclipse.tycho</groupId>
                        <artifactId>tycho-versions-plugin</artifactId>
                        <version>${tycho.version}</version>
                        <executions>
                            <execution>
                                <id>update-version</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>set-version</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>snapshotbuild</id>
            <activation>
                <property>
                    <name>!release</name>
                </property>
            </activation>
            <properties>
                <build.number>- local build -</build.number>
                <online.repo>https://openhab.jfrog.io/openhab/online-repo-snapshot/${online.repo.version}</online.repo>
                <pax.url.suffix>@snapshots</pax.url.suffix>
            </properties>
        </profile>
        <profile>
            <id>releasebuild</id>
            <activation>
                <property>
                    <name>release</name>
                </property>
            </activation>
            <properties>
                <build.number>Release Build</build.number>
                <online.repo>https://dl.bintray.com/openhab/mvn/online-repo/${online.repo.version}</online.repo>
                <pax.url.suffix/>
            </properties>
        </profile>
        <profile>
            <id>milestonebuild</id>
            <activation>
                <property>
                    <name>milestone</name>
                </property>
            </activation>
            <properties>
                <build.number>Milestone Build</build.number>
                <online.repo>https://openhab.jfrog.io/openhab/online-repo-milestone/${online.repo.version}</online.repo>
                <pax.url.suffix/>
            </properties>
        </profile>
    </profiles>

</project>
