<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">
  
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
    
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.github.kristofa</groupId>
  <artifactId>brave</artifactId>
  <version>1.0</version>
  <packaging>pom</packaging>

  <name>brave</name>
  <description>
  Java implementation of Dapper (http://research.google.com/pubs/pub36356.html) and inspired by zipkin (https://github.com/twitter/zipkin/).
  </description>
  <url>https://github.com/kristofa/brave</url>
  <licenses>
  	<license>
		<name>Apache 2</name>
		<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		<distribution>repo</distribution>
	</license>
   </licenses>
   <scm>
   		<connection>scm:git:git@github.com:kristofa/brave.git</connection>
    	<url>git@github.com:kristofa/brave.git</url>
    	<developerConnection>scm:git:git@github.com:kristofa/brave.git</developerConnection>
   </scm>
   <developers>
   		<developer>
      		<id>kristofa</id>
      		<name>Kristof Adriaenssens</name>
      		<email>kr_adr@yahoo.co.uk</email>
    	</developer>
   </developers>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  
  <modules>
  		<module>brave-interfaces</module>
        <module>brave-impl</module>
        <module>brave-resteasy-spring</module>
  </modules>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>
    <dependency>
		<groupId>org.mockito</groupId>
		<artifactId>mockito-all</artifactId>
		<version>1.8.5</version>
		<scope>test</scope>
	</dependency>
  </dependencies>
  
  <build>
        <resources>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/java</directory>
                <includes>
                    <include>**</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
        <testResources>
            <testResource>
                <filtering>false</filtering>
                <directory>src/test/java</directory>
                <includes>
                    <include>**</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </testResource>
            <testResource>
                <filtering>false</filtering>
                <directory>src/test/resources</directory>               
            </testResource>
        </testResources>
        
        <pluginManagement>
      	  <plugins>
       	     	<plugin>
                	<inherited>true</inherited>
                	<groupId>org.apache.maven.plugins</groupId>
                	<artifactId>maven-compiler-plugin</artifactId>
                	<version>2.5.1</version>
                	<configuration>
                   		<source>1.6</source>
                    	<target>1.6</target>
                    	<optimize>true</optimize>
                    	<debug>true</debug>
                	</configuration>
       	     	</plugin>
            	<plugin>
                	<groupId>org.apache.maven.plugins</groupId>
                	<artifactId>maven-eclipse-plugin</artifactId>
                	<version>2.9</version>
                	<configuration>
                    	<downloadSources>true</downloadSources>
                    	<downloadJavadocs>true</downloadJavadocs>
                	</configuration>
            	</plugin>
            	<plugin>
                	<groupId>org.apache.maven.plugins</groupId>
                	<artifactId>maven-source-plugin</artifactId>
                	<version>2.2</version>
                	<executions>
                    	<execution>
                        	<id>attach-sources</id>
                        	<goals>
                            	<goal>jar</goal>
                        	</goals>
                    	</execution>
                	</executions>
            	</plugin>
            	<plugin>
                	<groupId>org.apache.maven.plugins</groupId>
                	<artifactId>maven-javadoc-plugin</artifactId>
                	<version>2.8.1</version>
                	<executions>
                    	<execution>
                        	<id>attach-javadocs</id>
                        	<goals>
                            	<goal>jar</goal>
                        	</goals>
                    	</execution>
                	</executions>
            	</plugin>
            	<plugin>
                	<groupId>org.apache.maven.plugins</groupId>
                	<artifactId>maven-deploy-plugin</artifactId>
                	<version>2.7</version>
            	</plugin>
            	<plugin>
            		<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-failsafe-plugin</artifactId>
					<version>2.14</version>
					<executions>
						<execution>
							<id>integration-test</id>
							<goals>
								<goal>integration-test</goal>
							</goals>
						</execution>
						<execution>
							<id>verify</id>
							<goals>
								<goal>verify</goal>
							</goals>
						</execution>
					</executions>
	    		</plugin>
          </plugins>        
        </pluginManagement> 
    </build>
    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.1</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
