<?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>
  <artifactId>common</artifactId>
  <version>2.3.0</version>
  <name>Zanata common modules</name>
  <packaging>pom</packaging>
  <parent>
    <groupId>org.zanata</groupId>
    <artifactId>zanata-parent</artifactId>
    <version>10</version>
    <relativePath>../parent</relativePath>
  </parent>

	<scm>
		<connection>scm:git:git://github.com/zanata/zanata-common.git</connection>
		<developerConnection>scm:git:git@github.com:zanata/zanata-common.git</developerConnection>
		<url>https://github.com/zanata/zanata-common</url>
	</scm>

  <properties>
      <zanata.api.version>2.2.0</zanata.api.version>
  </properties>
  
  <dependencyManagement>
      <dependencies>
          <dependency>
              <groupId>${project.groupId}</groupId>
              <artifactId>zanata-common-api</artifactId>
              <version>${zanata.api.version}</version>
          </dependency>
        <dependency>
          <groupId>org.fedorahosted.tennera</groupId>
          <artifactId>jgettext</artifactId>
          <version>0.13</version>
        </dependency>
        <dependency>
          <groupId>org.zanata</groupId>
          <artifactId>zanata-common-util</artifactId>
          <version>${project.version}</version>
        </dependency>

          <dependency>
              <groupId>com.sun.xml.bind</groupId>
              <artifactId>jaxb-impl</artifactId>
              <version>2.1.12</version>
          </dependency>
      </dependencies>
   </dependencyManagement>

   <dependencies>
       <dependency>
           <groupId>${project.groupId}</groupId>
           <artifactId>zanata-common-api</artifactId>
       </dependency>
       <dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-api</artifactId>
       </dependency>
      <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <scope>test</scope>
      </dependency>
       <dependency>
           <groupId>org.hamcrest</groupId>
           <artifactId>hamcrest-core</artifactId>
           <scope>test</scope>
       </dependency>

       <dependency>
           <groupId>org.hamcrest</groupId>
           <artifactId>hamcrest-library</artifactId>
           <scope>test</scope>
       </dependency>

       <dependency>
           <groupId>org.testng</groupId>
           <artifactId>testng</artifactId>
           <scope>test</scope>
       </dependency>

   </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <inherited>true</inherited>
                <executions>
                    <execution>
                        <id>analyze</id>
                        <goals>
                            <goal>analyze-only</goal>
                        </goals>
                        <configuration>
                            <failOnWarning>true</failOnWarning>
                            <usedDependencies>
                                <usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
                            </usedDependencies>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

  <modules>
    <module>zanata-common-util</module>
    <module>zanata-adapter-po</module>
    <module>zanata-adapter-properties</module>
    <module>zanata-adapter-xliff</module>
    <module>zanata-adapter-glossary</module>
  </modules>
</project>
