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

   <groupId>es.sandbox.ui.messages</groupId>
   <artifactId>flash-messages-parent</artifactId>
   <version>0.1.4</version>
   <packaging>pom</packaging>

   <name>Flash Messages POM</name>
   <description>Flash messages parent pom</description>
   <url>https://github.com/jeslopalo/flash-messages</url>
   <inceptionYear>2013</inceptionYear>

   <licenses>
      <license>
         <name>The MIT License</name>
         <url>http://www.opensource.org/licenses/mit-license.php</url>
         <distribution>repo</distribution>
         <comments>It would be awesome to know that you're using it!</comments>
      </license>
   </licenses>

   <organization>
      <name>Jesús López Alonso [@jeslopalo]</name>
      <url>\\sandbox.es</url>
   </organization>

   <developers>
      <developer>
         <id>jeslopalo</id>
         <name>Jesús López</name>
         <email>jeslopalo at sandbox dot es</email>
         <roles>
            <role>developer</role>
         </roles>
         <timezone>+1</timezone>
         <url>https://github.com/jeslopalo</url>
      </developer>
   </developers>

   <scm>
      <connection>scm:git:ssh://github.com/jeslopalo/flash-messages.git</connection>
      <developerConnection>scm:git:ssh://git@github.com/jeslopalo/flash-messages.git</developerConnection>
      <url>https://github.com/jeslopalo/flash-messages</url>
      <tag>v0.1.4</tag>
   </scm>

   <distributionManagement>
      <repository>
         <id>bintray</id>
         <url>https://api.bintray.com/maven/jeslopalo/sandbox-maven-repository/flash-messages</url>
      </repository>
   </distributionManagement>

   <issueManagement>
      <system>GitHub</system>
      <url>https://github.com/jeslopalo/flash-messages/issues</url>
   </issueManagement>

   <prerequisites>
      <maven>3.0.0</maven>
   </prerequisites>

   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
      <java.version>1.6</java.version>
   </properties>

   <dependencyManagement>
      <dependencies>
         <!-- Servlet api -->
         <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
         </dependency>
         <!-- jsp api -->
         <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
         </dependency>
         <!-- jstl -->
         <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
         </dependency>

         <!-- JodaTime API -->
         <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>2.3</version>
         </dependency>

         <!-- Fest reflect -->
         <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-reflect</artifactId>
            <version>1.4.1</version>
         </dependency>

         <!-- Apache commons lang -->
         <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.1</version>
         </dependency>

         <!-- logging -->
         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.5</version>
         </dependency>
         <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-core</artifactId>
            <version>1.0.13</version>
         </dependency>
         <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.0.13</version>
         </dependency>

         <!-- Tests -->
         <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
         </dependency>
         <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>1.9.5</version>
            <scope>test</scope>
         </dependency>
         <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-assert-core</artifactId>
            <version>2.0M10</version>
            <scope>test</scope>
         </dependency>
         <dependency>
            <groupId>nl.jqno.equalsverifier</groupId>
            <artifactId>equalsverifier</artifactId>
            <version>1.3.1</version>
            <scope>test</scope>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <dependencies>
      <!-- Logging -->
      <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-api</artifactId>
      </dependency>

      <!-- Test -->
      <dependency>
         <groupId>es.sandbox.test</groupId>
         <artifactId>sandbox-test-support</artifactId>
         <version>[0,1)</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
      </dependency>
      <dependency>
         <groupId>org.easytesting</groupId>
         <artifactId>fest-assert-core</artifactId>
      </dependency>
   </dependencies>

   <build>
      <pluginManagement>
         <plugins>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-surefire-plugin</artifactId>
               <version>2.15</version>
               <configuration>
                  <includes>
                     <include>**/*Test*.java</include>
                     <include>**/*Test.java</include>
                     <include>**/*TestCase.java</include>
                     <include>**/*Spec.java</include>
                     <include>**/*Specs.java</include>
                  </includes>
               </configuration>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <version>2.3.2</version>
               <configuration>
                  <source>${java.version}</source>
                  <target>${java.version}</target>
               </configuration>
            </plugin>

            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-release-plugin</artifactId>
               <version>2.5.1</version>
               <configuration>
                  <useReleaseProfile>false</useReleaseProfile>
                  <releaseProfiles>release</releaseProfiles>
                  <autoVersionSubmodules>true</autoVersionSubmodules>
               </configuration>
            </plugin>

            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-pmd-plugin</artifactId>
               <version>3.0.1</version>
               <configuration>
                  <linkXref>true</linkXref>
                  <sourceEncoding>UTF-8</sourceEncoding>
                  <minimumTokens>100</minimumTokens>
                  <targetJdk>${java.version}</targetJdk>
                  <excludes>
                     <!-- <exclude>**/generated/*Bean.java</exclude> -->
                  </excludes>
                  <excludeRoots>
                     <excludeRoot>target/**</excludeRoot>
                  </excludeRoots>

                  <executions>
                     <execution>
                        <goals>
                           <goal>pmd</goal>
                           <goal>check</goal>
                        </goals>
                        <phase>package</phase>
                     </execution>
                  </executions>
               </configuration>
            </plugin>

            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-resources-plugin</artifactId>
               <version>2.5</version>
               <configuration>
                  <encoding>UTF-8</encoding>
               </configuration>
            </plugin>

            <!-- Cobertura -->
            <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>cobertura-maven-plugin</artifactId>
               <version>2.6</version>
               <configuration>
                  <format>xml</format>
                  <maxmem>256m</maxmem>
                  <!-- aggregated reports for multi-module projects -->
                  <aggregate>true</aggregate>
               </configuration>
            </plugin>

            <plugin>
               <groupId>org.eluder.coveralls</groupId>
               <artifactId>coveralls-maven-plugin</artifactId>
               <version>2.2.0</version>
               <configuration>
                  <serviceName>travis-ci</serviceName>
                  <!-- If used as a standalone maven build or with any continuous 
                     integration server other than Travis CI -->
                  <!-- <repoToken>yourcoverallsprojectrepositorytoken</repoToken> -->
               </configuration>
            </plugin>
         </plugins>
      </pluginManagement>
   </build>

   <profiles>
      <profile>
         <id>release</id>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-gpg-plugin</artifactId>
                  <version>1.5</version>
                  <executions>
                     <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                           <goal>sign</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>

               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-source-plugin</artifactId>
                  <version>2.0.4</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>

                  <configuration>
                     <links>
                        <link>http://download.oracle.com/javase/6/docs/api/</link>
                     </links>
                     <detectLinks>true</detectLinks>

                     <!-- bootclasspath required by Sun's JVM -->
                     <bootclasspath>${sun.boot.class.path}</bootclasspath>
                     <!-- General Javadoc settings -->
                     <doctitle>${project.name} (${project.version})</doctitle>
                     <!-- Apple's JVM sometimes requires more memory -->
                     <additionalJOption>-J-Xmx1024m</additionalJOption>

                     <show>package</show>
                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
                     <docletArtifact>
                        <groupId>org.umlgraph</groupId>
                        <artifactId>umlgraph</artifactId>
                        <version>5.6</version>
                     </docletArtifact>

                     <additionalparam>
                        -views
                        -all
                        -constructors
                        -hide java.(util|lang).*
                        -inferdep
                        -inferdepinpackage
                        -inferrel
		             </additionalparam>
                     <useStandardDocletOptions>true</useStandardDocletOptions>
                  </configuration>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>

   <reporting>
      <plugins>
         <!-- Test results report -->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>2.7.2</version>
         </plugin>

         <!-- JXR source reference report -->
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jxr-maven-plugin</artifactId>
            <version>2.0-beta-1</version>
         </plugin>

         <!-- Cobertura code coverage report -->
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <version>2.6</version>
            <configuration>
               <formats>
                  <format>html</format>
                  <format>xml</format>
               </formats>
            </configuration>
         </plugin>

         <!-- PMD/CPD report -->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <version>2.5</version>
            <configuration>
               <targetJdk>1.6</targetJdk>
            </configuration>
         </plugin>

         <!-- FindBugs report -->
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
            <version>2.3.1</version>
         </plugin>

         <!-- JavaNCSS report <plugin> <groupId>org.codehaus.mojo</groupId> 
            <artifactId>javancss-maven-plugin</artifactId> <version>2.1-SNAPSHOT</version> 
            </plugin> -->
      </plugins>
   </reporting>
</project>