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

<!--
  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>
    <groupId>org.apache.cxf.dosgi</groupId>
    <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
    <packaging>bundle</packaging>
    <name>CXF Distributed OSGI Distributed Discovery Zookeeper Library Wrapper Bundle</name>
    <version>1.1</version>

    <parent>
      <groupId>org.apache.cxf.dosgi</groupId>
      <artifactId>cxf-dosgi-ri-parent</artifactId>
      <version>1.1</version>
      <relativePath>../../../parent/pom.xml</relativePath>
    </parent>

    <properties>
        <topDirectoryLocation>../../..</topDirectoryLocation>
    </properties>
    
    <dependencies>
        <dependency>
            <groupId>org.apache.hadoop.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>${zookeeper.version}</version>
        </dependency>

        <dependency> 
            <groupId>org.apache.log4j</groupId> 
            <artifactId>com.springsource.org.apache.log4j</artifactId> 
            <version>${log4j.version}</version>
            <scope>provided</scope> <!-- prevents the maven-bundle-plugin from embedding the log4j classes -->
        </dependency>
    </dependencies> 

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Bundle-Name>ZooKeeper wrapper bundle</Bundle-Name>
                        <Bundle-Description>This bundle wraps the ZooKeeper library</Bundle-Description>
                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                        <Import-Package>*</Import-Package>
                        <Export-Package>*;version=${zookeeper.version}</Export-Package> 
                    </instructions>
                </configuration>
            </plugin> 
        </plugins>
    </build>    

    <repositories>
        <!-- The zookeeper jar file is not generally available via Maven, therefore we're picking it up
             from the temporary repository below. -->
        <repository>
            <id>zookeeper.temp.repo</id>
            <name>Hiram Chirino's temporary repo containing Apache Zookeeper</name>
            <url>http://people.apache.org/~chirino/zk-repo</url>
        </repository>
    </repositories>
</project>
