<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright 2010 david varnes.
 *
 * Licensed 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>
  <!--  use the Sonatype OSS Repository parent pom, in order to deploy to that repository  -->
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>4</version>
  </parent>
  <groupId>org.freeswitch.esl.client</groupId>
  <artifactId>java-esl-client</artifactId>
  <version>0.9.0</version>
  <packaging>pom</packaging>
  <name>FreeSWITCH Event Socket Library - Java Client project</name>
  <url>http://www.freeswitch.org</url>
  <description>
    The FreeSWITCH Event Socket Library provides a TCP based control and/or
    monitoring interface to a running switch.  This project provides a Java
    client to the ESL.
  </description>
  <organization>
    <name>FreeSWITCH.org</name>
    <url>http://www.freeswitch.org</url>
  </organization>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>
  <inceptionYear>2009</inceptionYear>
  <scm>
    <connection>scm:git:git://git.freeswitch.org/freeswitch-contrib.git</connection>
    <developerConnection>scm:git:ssh://git@git.freeswitch.org/freeswitch-contrib.git</developerConnection>
    <url>git://git.freeswitch.org/freeswitch-contrib.git</url>
  </scm>
  <developers>
    <developer>
      <id>dvarnes</id>
      <name>david varnes</name>
      <email>david.varnes at gmail dot com</email>
      <timezone>GMT+10</timezone>
    </developer>
  </developers>
  <modules>
  	<module>org.freeswitch.esl.client</module>
    <!--  removed until there is something worth deploying -->
<!--  	<module>org.freeswitch.esl.client.example</module>-->
  </modules>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <source>1.5</source>
            <target>1.5</target>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <!--  every child project inherits these plugins -->
      <!--  compile at java 1.5 level  -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <!--  create source artifact  -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-source</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <attach>true</attach>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!--  create javadoc artifact  -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <show>public</show>
              <nohelp>true</nohelp>
              <links>
                <link>http://docs.jboss.org/netty/3.2/api/</link>
              </links>
              <bottom><![CDATA[Copyright &#169; {inceptionYear}-{currentYear} david varnes. All Rights Reserved.]]></bottom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release-sign-artifacts</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <!--  sign all release artifacts -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>