<?xml version="1.0" encoding="UTF-8"?>
<!--
  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.
  
  $Id: pom.xml 1179123 2011-10-05 09:40:26Z ate $
-->
<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>
  <prerequisites>
    <maven>2.0.9</maven>
  </prerequisites>

  <artifactId>jetspeed-capability</artifactId>
  <name>Jetspeed-2 Capability Components</name>
  <description>
    Capability Components defines an api for "guessing" what client is accessing a web application by looking for
    clues in the request headers then return a list of that client's capabilites i.e. HTML 4.0, WML, Javascript 1.2,
    etc.
  </description>
  <parent>
    <groupId>org.apache.portals.jetspeed-2</groupId>
    <artifactId>components</artifactId>
    <version>2.2.2</version>
  </parent>
  <packaging>jar</packaging>

  <dependencies>

    <!-- Build Dependencies -->
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>jetspeed-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>jetspeed-commons</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>jetspeed-rdbms</artifactId>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>jetspeed-serializer</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
    </dependency>

    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>jetspeed-cm</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- for spring-core we require JCL -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>${org.apache.jetspeed.test.jdbc.driver.groupId}</groupId>
      <artifactId>${org.apache.jetspeed.test.jdbc.driver.artifactId}</artifactId>
      <version>${org.apache.jetspeed.test.jdbc.driver.version}</version>
      <scope>test</scope>
    </dependency>
    <!--
      Note: tyrex and junit is normally required only for test, but in this case, abstract test cases are included in
      the component build... this should probably be fixed... for now, assume that junit will be provided if these test
      classes are used.
    -->
    <dependency>
      <groupId>tyrex</groupId>
      <artifactId>tyrex</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>${project.groupId}</groupId>
        <artifactId>jetspeed-unpack-maven-plugin</artifactId>
        <version>${project.version}</version>
        <executions>
          <execution>
            <id>unpack-test-resources</id>
            <goals>
              <goal>unpack</goal>
            </goals>
            <phase>process-test-resources</phase>
            <configuration>
              <skip>${skipTests}</skip>
              <unpack>
                <artifact>${project.groupId}:jetspeed-portal-resources:jar</artifact>
                <targetDirectory>${project.build.testOutputDirectory}</targetDirectory>
                <resources>
                  <resource>
                    <path>assembly</path>
                    <include>capabilities.xml,transaction.xml,boot/datasource.xml</include>
                  </resource>
                  <resource>
                    <path>db-ojb</path>
                  </resource>
                  <resource>
                    <path>seed/min</path>
                    <include>j2-seed.xml</include>
                  </resource>
                </resources>
              </unpack>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>jetspeed-portal-resources</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
  </build>

</project>
