<?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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.zanata</groupId>
    <artifactId>client</artifactId>
    <version>3.1.1</version>

  </parent>
  <artifactId>zanata-maven-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  
  <name>Zanata Maven Plugin</name>
  
  <!-- 
  NB: This description will be extracted by maven-plugin-plugin, 
  put into the plugin descriptor, and used in the auto-generated 'help' 
  goal). 
  -->
  <description>
    Zanata client for managing projects, publishing 
    source text and retrieving translations.
  </description>
  
   <!-- Should be the same as zanata-client/pom.xml -->
   <scm>
      <connection>scm:git:git://github.com/zanata/zanata-client.git</connection>
      <developerConnection>scm:git:git@github.com:zanata/zanata-client.git</developerConnection>
      <url>https://github.com/zanata/zanata-client</url>
   </scm>

  <prerequisites>
  	<maven>2.0.8</maven>
  </prerequisites>
  <inceptionYear>2010</inceptionYear>
   
  <dependencies>
    <dependency>
        <groupId>org.zanata</groupId>
        <artifactId>zanata-client-commands</artifactId>
        <!-- Ensure we never pick up logback-classic -->
        <exclusions>
            <exclusion>
                <artifactId>logback-classic</artifactId>
                <groupId>ch.qos.logback</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-project</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
       <groupId>org.easymock</groupId>
       <artifactId>easymock</artifactId>
       <scope>test</scope>
    </dependency>
    <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-utils</artifactId>
       <version>1.5.7</version>
       <scope>test</scope>
    </dependency>

      <!-- We do not need slf4j-api in this module. But parent module defines it.-->
      <dependency>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
          <scope>provided</scope>
      </dependency>

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <scope>runtime</scope>
    </dependency>
	<dependency>
	    <groupId>com.pyx4j</groupId>
	    <artifactId>maven-plugin-log4j</artifactId>
	</dependency>
	<dependency>
	  <groupId>org.apache.maven.plugin-testing</groupId>
	  <artifactId>maven-plugin-testing-harness</artifactId>
	  <version>1.2</version>
	  <scope>test</scope>
	</dependency>

      <dependency>
          <groupId>commons-lang</groupId>
          <artifactId>commons-lang</artifactId>
      </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>2.9</version>
        <executions>
          <!-- Tell maven-plugin-plugin to generate the 'help' goal -->
          <execution>
            <id>generated-helpmojo</id>
            <goals>
              <goal>helpmojo</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
			<useJava5>true</useJava5>
			<!-- Use only java mojo extractor -->
			<extractors>
			    <extractor>java</extractor>
			</extractors>
        </configuration>
      </plugin>

      <!-- This is just to tell Maven about our plugin prefix: -->
<!--  But Maven 3 won't like it without a version...
      <plugin>
        <groupId>${groupId}</groupId>
        <artifactId>${artifactId}</artifactId>
        <version>${version}</version>
      </plugin>
 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
                <execution>
                    <id>analyze</id>
                    <goals>
                        <goal>analyze-only</goal>
                    </goals>
                    <configuration>
                        <failOnWarning>true</failOnWarning>
                        <usedDependencies>
                            <usedDependency>org.slf4j:slf4j-api</usedDependency>
                            <usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
                            <usedDependency>org.zanata:zanata-common-api</usedDependency>
                            <usedDependency>org.codehaus.plexus:plexus-utils</usedDependency>
                        </usedDependencies>
                    </configuration>
                </execution>
            </executions>
        </plugin>

    </plugins>
  </build>

<!-- tell maven to generate plugin documentation: -->
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>2.6</version>
      </plugin>
    </plugins>
  </reporting> 
</project>
