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

    <!--

        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements.  See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF 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.
    -->

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>10</version>
    </parent>

    <groupId>org.apache.ace</groupId>
    <artifactId>ace-pom</artifactId>
    <name>Apache ACE :: POM</name>
    <version>0.8.1-incubator</version>
    <packaging>pom</packaging>
    <inceptionYear>2009</inceptionYear>

    <description>
        This pom provides project information that is common to all ACE sub-projects.
    </description>

    <url>http://incubator.apache.org/ace/</url>

    <issueManagement>
        <system>jira</system>
        <url>https://issues.apache.org/jira/browse/ACE</url>
    </issueManagement>

    <mailingLists>
        <mailingList>
            <name>Apache ACE Developer List</name>
            <subscribe>ace-dev-subscribe@incubator.apache.org</subscribe>
            <unsubscribe>ace-dev-unsubscribe@incubator.apache.org</unsubscribe>
            <post>ace-dev@incubator.apache.org</post>
        </mailingList>
        <mailingList>
            <name>Apache ACE SCM List</name>
            <subscribe>ace-commits-subscribe@incubator.apache.org</subscribe>
            <unsubscribe>ace-commits-unsubscribe@incubator.apache.org</unsubscribe>
            <post>ace-commits@incubator.apache.org</post>
        </mailingList>
    </mailingLists>

    <prerequisites>
        <maven>2.2.1</maven>
    </prerequisites>

    <developers>
        <developer>
            <id>angelos</id>
            <name>Angelo van der Sijpt</name>
        </developer>
        <developer>
            <id>btopping</id>
            <name>Brian Topping</name>
        </developer>
        <developer>
            <id>christian</id>
            <name>Christian van Spaandonk</name>
        </developer>
        <developer>
            <id>clement</id>
            <name>Clément Escoffier</name>
        </developer>
        <developer>
            <id>cziegeler</id>
            <name>Carsten Ziegeler</name>
        </developer>
        <developer>
            <id>fmeschbe</id>
            <name>Felix Meschberger</name>
        </developer>
        <developer>
            <id>jbonofre</id>
            <name>Jean-Baptiste Onofré</name>
        </developer>
        <developer>
            <id>marrs</id>
            <name>Marcel Offermans</name>
        </developer>
        <developer>
            <id>niclas</id>
            <name>Niclas Hedhman</name>
        </developer>
        <developer>
            <id>pauls</id>
            <name>Karl Pauls</name>
        </developer>
        <developer>
            <id>tonit</id>
            <name>Toni Menzel</name>
        </developer>
    </developers>

    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/ace/releases/ace-pom-0.8.1-incubator</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/ace/releases/ace-pom-0.8.1-incubator</developerConnection>
        <url>http://svn.apache.org/repos/asf/incubator/ace/releases/ace-pom-0.8.1-incubator</url>
    </scm>

    <properties>
        <!-- Default OSGi statements -->
        <import.package>*</import.package>
        <export.package />
        <private.package />
        <embed.dependency />
        <embed.transitive>false</embed.transitive>
        <bundle.activator />
        <deployment.providesresourceprocessor />

        <commons-collections.version>3.2.1</commons-collections.version>
        <commons-lang.version>2.4</commons-lang.version>
        <commons-logging.version>1.1.1</commons-logging.version>
        <easymock.version>2.5.2</easymock.version>
        <felix.configadmin.version>1.2.8</felix.configadmin.version>
        <felix.dependencymanager.version>3.0.0</felix.dependencymanager.version>
        <felix.deploymentadmin.version>0.9.0</felix.deploymentadmin.version>
        <felix.eventadmin.version>1.2.8</felix.eventadmin.version>
        <felix.framework.version>3.0.8</felix.framework.version>
        <felix.maven-bundle-plugin.version>2.3.4</felix.maven-bundle-plugin.version>
        <felix.metatype.version>1.0.4</felix.metatype.version>
        <felix.prefs.version>1.0.4</felix.prefs.version>
        <felix.shell.version>1.4.2</felix.shell.version>
        <junit.version>4.4</junit.version>
        <knopflerfish.version>2.0.2</knopflerfish.version>
        <kxml2.version>2.3.0</kxml2.version>
        <mockito.version>1.8.1</mockito.version>
        <osgi.compendium.version>4.2.0</osgi.compendium.version>
        <osgi.core.version>4.2.0</osgi.core.version>
        <pax.exam.version>1.2.3</pax.exam.version>
        <pax.runner.version>1.5.0</pax.runner.version>
        <pax.swissbox.version>1.2.0</pax.swissbox.version>
        <pax.web.version>0.7.2</pax.web.version>
        <servlet-api.version>2.4</servlet-api.version>
        <surefire.testng.version>2.9</surefire.testng.version>
        <vaadin.version>6.5.1</vaadin.version>
        <velocity.version>1.6.2</velocity.version>
        <xpp3.version>1.1.4c</xpp3.version>
        <xstream.version>1.2.2</xstream.version>
        <sourceReleaseAssemblyDescriptor>source-release-zip-tar</sourceReleaseAssemblyDescriptor>
    </properties>

    <repositories>
        <repository>
            <id>knopflerfish-m2</id>
            <url>http://www.knopflerfish.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <build>

        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>ianal-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>verify-legal-files</goal>
                        </goals>
                        <configuration>
                            <strict>false</strict>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <configuration>
                            <resourceBundles>
                                <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
                                <resourceBundle>org.apache:apache-incubator-disclaimer-resource-bundle:1.1</resourceBundle>
                            </resourceBundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>test-compile</phase>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>${felix.maven-bundle-plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Description>${project.description}</Bundle-Description>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <Export-Package>${export.package}</Export-Package>
                        <Import-Package>${import.package}</Import-Package>
                        <Private-Package>${private.package}</Private-Package>
                        <Embed-Dependency>${embed.dependency}</Embed-Dependency>
                        <Embed-Transitive>${embed.transitive}</Embed-Transitive>
                        <Bundle-Activator>${bundle.activator}</Bundle-Activator>
                        <Deployment-ProvidesResourceProcessor>${deployment.providesresourceprocessor}</Deployment-ProvidesResourceProcessor>
                    </instructions>
                    <supportedProjectTypes>
                        <supportedProjectType>jar</supportedProjectType>
                        <supportedProjectType>bundle</supportedProjectType>
                        <supportedProjectType>war</supportedProjectType>
                    </supportedProjectTypes>
                </configuration>
            </plugin>
        </plugins>

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.ops4j.pax.exam</groupId>
                    <artifactId>maven-paxexam-plugin</artifactId>
                    <version>${pax.exam.version}</version>
                </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-release-plugin</artifactId>
                  <configuration>
                     <tagBase>https://svn.apache.org/repos/asf/incubator/ace/releases</tagBase>
                     <mavenExecutorId>forked-path</mavenExecutorId>
                  </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh-external</artifactId>
                <version>1.0-beta-6</version>
            </extension>
        </extensions>

    </build>

    <!-- Global Dependencies for Testing Facilities -->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.surefire</groupId>
            <artifactId>surefire-testng</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <!-- Default Versions for External Dependencies -->
    <dependencyManagement>
        <dependencies>
            <!-- Commons -->
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>${commons-collections.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons-lang.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>${commons-logging.version}</version>
            </dependency>

            <!-- OPS4J -->
            <dependency>
                <groupId>org.ops4j.pax.exam</groupId>
                <artifactId>pax-exam</artifactId>
                <version>${pax.exam.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.exam</groupId>
                <artifactId>pax-exam-container-default</artifactId>
                <version>${pax.exam.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.exam</groupId>
                <artifactId>pax-exam-junit</artifactId>
                <version>${pax.exam.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.runner</groupId>
                <artifactId>pax-runner</artifactId>
                <version>${pax.runner.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.swissbox</groupId>
                <artifactId>pax-swissbox-tinybundles</artifactId>
                <version>${pax.swissbox.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.web</groupId>
                <artifactId>pax-web-extender-war</artifactId>
                <version>${pax.web.version}</version>
            </dependency>
            <dependency>
                <groupId>org.ops4j.pax.web</groupId>
                <artifactId>pax-web-jetty-bundle</artifactId>
                <version>${pax.web.version}</version>
            </dependency>

            <!-- OSGi -->
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.core</artifactId>
                <version>${osgi.core.version}</version>
            </dependency>
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.compendium</artifactId>
                <version>${osgi.compendium.version}</version>
            </dependency>

            <!-- Apache Felix -->
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.configadmin</artifactId>
                <version>${felix.configadmin.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.compendium</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.dependencymanager</artifactId>
                <version>${felix.dependencymanager.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.compendium</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.dependencymanager.shell</artifactId>
                <version>${felix.dependencymanager.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.deploymentadmin</artifactId>
                <version>${felix.deploymentadmin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.eventadmin</artifactId>
                <version>${felix.eventadmin.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.compendium</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.framework</artifactId>
                <version>${felix.framework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.prefs</artifactId>
                <version>${felix.prefs.version}</version>
            </dependency>

            <!-- Knopflerfish -->
            <dependency>
                <groupId>org.knopflerfish</groupId>
                <artifactId>log</artifactId>
                <version>${knopflerfish.version}</version>
            </dependency>
            <dependency>
                <groupId>org.knopflerfish.bundle</groupId>
                <artifactId>useradmin</artifactId>
                <version>${knopflerfish.version}</version>
            </dependency>

            <!-- Servlet API -->
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>${servlet-api.version}</version>
            </dependency>

            <!-- Apache Velocity -->
            <dependency>
                <groupId>org.apache.velocity</groupId>
                <artifactId>velocity</artifactId>
                <version>${velocity.version}</version>
            </dependency>

            <!-- KXML -->
            <dependency>
                <groupId>net.sf.kxml</groupId>
                <artifactId>kxml2</artifactId>
                <version>${kxml2.version}</version>
            </dependency>

            <!-- XPP3 -->
            <dependency>
                <groupId>xpp3</groupId>
                <artifactId>xpp3</artifactId>
                <version>${xpp3.version}</version>
            </dependency>

            <!-- XStream -->
            <dependency>
                <groupId>com.thoughtworks.xstream</groupId>
                <artifactId>xstream</artifactId>
                <version>${xstream.version}</version>
            </dependency>

            <!-- Vaadin -->
            <dependency>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin</artifactId>
                <version>${vaadin.version}</version>
            </dependency>

            <!-- Test dependencies -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.surefire</groupId>
                <artifactId>surefire-testng</artifactId>
                <version>${surefire.testng.version}</version>
            </dependency>
            <dependency>
                <groupId>org.easymock</groupId>
                <artifactId>easymock</artifactId>
                <version>${easymock.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>${mockito.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>

      <profile>
         <id>release</id>
         <build>
            <plugins>
               <!-- We want to deploy the artifact to a staging location for perusal -->
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-deploy-plugin</artifactId>
                  <inherited>true</inherited>
                  <version>2.5</version>
                  <configuration>
                     <updateReleaseInfo>true</updateReleaseInfo>
                  </configuration>
               </plugin>
               <!-- We Want to sign the artifact, the POM, and all attached artifacts -->
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-gpg-plugin</artifactId>
                  <version>1.2</version>
                  <executions>
                     <execution>
                        <goals>
                           <goal>sign</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>

      <profile>
         <id>deploy</id>
         <build>
            <defaultGoal>deploy</defaultGoal>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-source-plugin</artifactId>
                  <version>2.1.2</version>
                  <executions>
                     <execution>
                        <id>attach-sources</id>
                        <goals>
                           <goal>jar</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-javadoc-plugin</artifactId>
                  <version>2.8</version>
                  <executions>
                     <execution>
                        <id>attach-javadocs</id>
                        <goals>
                           <goal>jar</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>

    </profiles>

</project>
