<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Austrian Association for Software Tool Integration (AASTI)
    under one or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information regarding copyright
    ownership. The AASTI licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<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>

  <properties>
    <!-- base settings -->
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!-- core versions -->
    <karaf.version>2.2.2</karaf.version>
    <aries.blueprint.version>0.3.1</aries.blueprint.version>
    <aries.proxy.version>0.3</aries.proxy.version>
    <aries.util.version>0.3</aries.util.version>
    <!-- Current Branch Version Information -->
    <openengsb.version.number>${project.version}</openengsb.version.number>
    <openengsb.version.name.adjective>Qualified</openengsb.version.name.adjective>
    <openengsb.version.name.noun>Q</openengsb.version.name.noun>
    <!-- General Download Version Information -->
    <openengsb.version.stable>1.2.1.RELEASE</openengsb.version.stable>
    <openengsb.version.dev>1.3.0.M3</openengsb.version.dev>
    <openengsb.version.nightly>1.3.0-SNAPSHOT</openengsb.version.nightly>
    <!-- version range for externalized projects (connectors) -->
    <openengsb.version.min>1.2.0.M5</openengsb.version.min>
    <openengsb.version.max>1.4</openengsb.version.max>
    <openengsb.version.range>[${openengsb.version.min},${openengsb.version.max})</openengsb.version.range>
    <!-- maven plugin versions -->
    <maven.plugin.mvn.license>1.8.0</maven.plugin.mvn.license>
    <maven.plugin.wagon.ssh.version>1.0-beta-6</maven.plugin.wagon.ssh.version>
    <maven.plugin.wagon.webdav.version>1.0-beta-2</maven.plugin.wagon.webdav.version>
    <maven.plugin.release.version>2.1</maven.plugin.release.version>
    <maven.plugin.checkstyle.version>2.6</maven.plugin.checkstyle.version>
    <maven.plugin.openjpa.version>1.2</maven.plugin.openjpa.version>
    <maven.plugin.bundle.version>2.3.4</maven.plugin.bundle.version>
    <!-- Dependency Versions -->
    <javax.xml.soap>1.3.0</javax.xml.soap>
    <!-- Documentation Properties -->
    <github>https://github.com/openengsb/openengsb/blob/master</github>
    <github.raw>https://github.com/openengsb/openengsb/raw/master</github.raw>
    <checkstyleconfig>https://github.com/openengsb/openengsb-maven-plugin/raw/master/src/main/resources/checkstyle/checkstyle.xml</checkstyleconfig>
    <repos.snapshot>https://oss.sonatype.org/content/groups/public</repos.snapshot> 
    <repos.final>http://uk1.maven.org/maven2</repos.final>
    <repos.current />
    <repos.example>${repos.current}/org/openengsb/docs/openengsb-docs-examples/${project.version}/openengsb-docs-examples-${project.version}</repos.example>
    <repos.source>http://github.com</repos.source>
  </properties>

  <parent>
    <groupId>org.openengsb</groupId>
    <artifactId>openengsb-root</artifactId>
    <version>19</version>
  </parent>

  <groupId>org.openengsb</groupId>
  <artifactId>openengsb-parent</artifactId>
  <packaging>pom</packaging>
  <version>1.3.0.M3</version>
  <name>OpenEngSB :: Parent</name>

  <description>
    Parent project of all OpenEngSB subprojects. The OpenEngSB could be seen as an extension to an
    Enterprise Service Bus and is based on JBI (Service Mix). With this project it is tried to provide as many as
    possible SE domains and to allow to combine the tools as easily as possible.
  </description>

  <url>http://openengsb.org</url>

  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <modules>
    <module>tooling</module>
    <module>branding</module>
    <module>docs</module>
    <module>poms</module>
    <module>core</module>
    <module>infrastructure</module>
    <module>ports</module>
    <module>domain</module>
    <module>connector</module>
    <module>examples/domain</module>
    <module>examples/connector</module>
    <module>ui</module>
    <module>assembly</module>
    <module>itests</module>
  </modules>

  <scm>
    <connection>scm:git:git://github.com/openengsb/openengsb.git</connection>
    <developerConnection>scm:git:git@github.com:openengsb/openengsb.git</developerConnection>
    <url>http://github.com/openengsb/openengsb</url>
  </scm>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
    </resources>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>${maven.plugin.wagon.webdav.version}</version>
      </extension>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>${maven.plugin.wagon.ssh.version}</version>
      </extension>
    </extensions>
    <plugins>
      <plugin>
        <groupId>org.apache.karaf.tooling</groupId>
        <artifactId>features-maven-plugin</artifactId>
        <version>${karaf.version}</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>openjpa-maven-plugin</artifactId>
        <version>${maven.plugin.openjpa.version}</version>
      </plugin>
      <plugin>
        <groupId>org.jasig.maven</groupId>
        <artifactId>maven-notice-plugin</artifactId>
        <configuration>
          <noticeTemplate>etc/notice/NOTICE.template</noticeTemplate>
          <licenseMapping>
            <param>etc/notice/license-mapping.xml</param>
          </licenseMapping>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>${maven.plugin.bundle.version}</version>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>features</id>
      <modules>
        <module>features</module>
      </modules>
    </profile>
    <profile>
      <id>nightly</id>
      <properties>
        <github>https://github.com/openengsb/openengsb/blob/master</github>
        <github.raw>https://github.com/openengsb/openengsb/raw/master</github.raw>
        <repos.current>${repos.snapshot}</repos.current>
        <sitesubtype>nightly</sitesubtype>
      </properties>
    </profile>
    <profile>
      <id>milestone</id>
      <properties>
        <github>https://github.com/openengsb/openengsb/blob/openengsb-${project.version}</github>
        <github.raw>https://github.com/openengsb/openengsb/raw/openengsb-${project.version}</github.raw>
        <repos.current>${repos.final}</repos.current>
        <sitesubtype>milestone</sitesubtype>
      </properties>
    </profile>
    <profile>
      <id>final</id>
      <properties>
        <github>https://github.com/openengsb/openengsb/blob/openengsb-${project.version}</github>
        <github.raw>https://github.com/openengsb/openengsb/raw/openengsb-${project.version}</github.raw>
        <repos.current>${repos.final}</repos.current>
        <sitesubtype />
      </properties>
    </profile>
    <profile>
      <id>support</id>
      <properties>
        <github>https://github.com/openengsb/openengsb/blob/openengsb-${project.version}</github>
        <github.raw>https://github.com/openengsb/openengsb/raw/openengsb-${project.version}</github.raw>
        <repos.current>${repos.final}</repos.current>
        <sitesubtype />
      </properties>
    </profile>
    <profile>
      <id>rc</id>
      <properties>
        <github>https://github.com/openengsb/openengsb/blob/openengsb-${project.version}</github>
        <github.raw>https://github.com/openengsb/openengsb/raw/openengsb-${project.version}</github.raw>
        <repos.current>${repos.final}</repos.current>
        <sitesubtype>rc</sitesubtype>
      </properties>
    </profile>
  <profile><id>cba4f484-6544-4cce-b80c-4c54fab76e90</id><build><plugins><plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>${maven.plugin.release.version}</version>
      <configuration>
        <autoVersionSubmodules>true</autoVersionSubmodules>
        <mavenExecutorId>forked-path</mavenExecutorId>
        <useReleaseProfile>false</useReleaseProfile>
        <pushChanges>false</pushChanges>
        <arguments>-Psonatype-oss-release -DpushChanges=false</arguments>
        <preparationGoals>clean install</preparationGoals>
        <checkModificationExcludes>
          <checkModificationExclude>pom.xml</checkModificationExclude>
        </checkModificationExcludes>
      </configuration>
    </plugin></plugins><resources /></build><modules /></profile></profiles>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.openengsb.connector</groupId>
        <artifactId>openengsb-connector-example</artifactId>
        <version>1.3.0.M3</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-api</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-common</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-services</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-persistence</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-security</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-test</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.core</groupId>
        <artifactId>openengsb-core-workflow</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.domain</groupId>
        <artifactId>openengsb-domain-auditing</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb.domain</groupId>
        <artifactId>openengsb-domain-example</artifactId>
        <version>1.3.0.M3</version>
      </dependency>
      <dependency>
        <groupId>org.openengsb</groupId>
        <artifactId>openengsb</artifactId>
        <version>1.3.0.M3</version>
        <type>xml</type>
        <classifier>features</classifier>
      </dependency>
      <dependency>
        <groupId>org.openengsb</groupId>
        <artifactId>openengsb</artifactId>
        <version>1.3.0.M3</version>
        <type>xml</type>
        <classifier>features-itests</classifier>
      </dependency>
      <dependency>
        <groupId>org.openengsb.ui</groupId>
        <artifactId>openengsb-ui-common</artifactId>
        <version>1.3.0.M3</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.openengsb.ui</groupId>
        <artifactId>openengsb-ui-admin</artifactId>
        <version>1.3.0.M3</version>
        <scope>provided</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <repositories>
    <repository> <!-- Additional Repositories for Karaf -->
      <id>sonatype</id>
      <name>sonatype</name>
      <url>http://repository.sonatype.org/content/groups/sonatype-public-grid</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

</project>

