<!--
    $Id: pom.xml,v 1.17 2009/12/30 11:25:21 oboehm Exp $

	Project Object Model (POM) for Maven
	If you are behind a proxy try the following command:
		'mvn -Dhttp.proxyHost=10.253.1.158 -Dhttp.proxyPort=8080 validate'
	Instead of 'validate' you can use also another goal. The following goals
	should work (see also iX 2/2006, p.77):
		validate
		generate-sources
		install
	
	Some other useful goals are:
	    jar
	    source:jar
	    source:test-jar
	
	PS: If you want to update the maven plugins use the option -U.

	see http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
	see http://maven.apache.org/pom.htm
	
    (c)reated 22-Mar-09 by ob@aosd.de
	last up$Date: 2009/12/30 11:25:21 $ by $Author: oboehm $
-->

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

  <parent>
    <groupId>net.sf.patterntesting</groupId>
    <artifactId>patterntesting-parent</artifactId>
    <version>0.9.9</version>
  </parent>
	
  <!-- 
      The Basics
      must be set if you want to upload it to the Central Repository
      see http://maven.apache.org/guides/mini/guide-central-repository-upload.html
   -->	
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.patterntesting</groupId>
  <artifactId>patterntesting-exception</artifactId>
  <packaging>jar</packaging>
  <version>0.9.9</version>
  <name>patterntesting-exception</name>
  <!-- see http://maven.apache.org/pom.html#Licenses -->
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <inceptionYear>2009</inceptionYear>
  <description>
    PatternTesting Exception (patterntesting-exception) is a framework round
    about exceptions. It wraps some common exception (like IOException) to
    provide some more information as the original exception (e.g. the
    filename with the absolute pathname).
    On the other it allows you to provoke exceptions for better testing.
  </description>
  
  <url>http://patterntesting.sourceforge.net/exception/</url>
  
  <scm>
    <connection>scm:cvs:pserver:anonymous@patterntesting.cvs.sourceforge.net:/cvsroot/patterntesting:PatternTesting08/patterntesting-exception</connection>
    <url>http://patterntesting.cvs.sourceforge.net/viewvc/patterntesting/PatternTesting08/patterntesting-exception/</url>
  </scm>

  <developers>
    <developer>
      <name>Oliver Boehm</name>
      <id>oboehm</id>
      <email>ob@aosd.de</email>
      <url>http://www.aosd.de/</url>
      <organization>agentes AG</organization>
      <organizationUrl>http://www.agentes.de</organizationUrl>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
  </developers>
  
  <!-- 
	  L I B R A R I E S
	  see http://www.ibiblio.org/maven2/ for available libraries
   -->
  <dependencies>
    <dependency>
      <groupId>net.sf.patterntesting</groupId>
      <artifactId>patterntesting-rt</artifactId>
      <version>[0.9.7,]</version>
    </dependency>
  </dependencies>

  <!-- 
      General Properties
      (see parent POM)
   -->
  <properties>
    <commons.componentid>exception</commons.componentid>
  </properties> 

  <!-- Build Settings -->
  <build>
    <plugins>
      <!--
          AspectJ compiler
          @see http://www.mail-archive.com/user@mojo.codehaus.org/msg00157.html
          @see http://mail-archives.apache.org/mod_mbox/maven-users/200601.mbox/%3CB39B8F0E-BB20-44DB-96B3-3C7FCB85B594@gmail.com%3E
          @see http://mojo.codehaus.org/aspectj-maven-plugin/differentTestAndCompile.html
       -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>aspectj-maven-plugin</artifactId>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
          <complianceLevel>1.6</complianceLevel>
          <options>
            <option>-verbose</option>
            <option>-showWeaveInfo</option>             
          </options>
          <ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
          <aspectLibraries>
            <aspectLibrary>
              <groupId>net.sf.patterntesting</groupId>
              <artifactId>patterntesting-rt</artifactId>
            </aspectLibrary>
          </aspectLibraries>
        </configuration>
        <executions>
          <execution>
            <id>compile</id>
            <configuration>
              <ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
            </configuration>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
          <execution>
            <id>test-compile</id>
            <configuration>
              <ajdtBuildDefFile>src/test/build.ajproperties</ajdtBuildDefFile>
            </configuration>
            <goals>
              <goal>test-compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
	  <!-- see http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html -->
	  <plugin>
	    <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- Aspects must be addressed with the suffix .java (don't ask why) -->
          <excludes>
            <exclude>**/patterntesting/exception/TestExceptionAspect.java</exclude>
          </excludes>
        </configuration>
	  </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
            <descriptor>src/assembly/bin.xml</descriptor>
            <descriptor>src/assembly/src.xml</descriptor>
          </descriptors>
          <tarLongFileMode>gnu</tarLongFileMode>
        </configuration>
      </plugin>
	  <!-- see http://maven.apache.org/plugins/maven-source-plugin/usage.html -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!--
          copy reports
          
          ask Ant to do some jobs for us
          @see http://maven.apache.org/plugins/maven-antrun-plugin/usage.html
          @see http://maven.apache.org/settings.html / Properties
       -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>site</phase>
            <configuration>
              <tasks name="install.reports"
                     description="copy reports to local site">
                <!--
                  Place any ant task here. You can add anything
                  you can add between <target> and </target> in a
                  build.xml.
                -->
                <echo>copying reports...</echo>
                <copy todir="/srv/www/htdocs/builds/patterntesting/exception/" 
                      verbose="true">
                  <fileset dir="target/site"/>
                </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>



<!--
    $Log: pom.xml,v $
    Revision 1.17  2009/12/30 11:25:21  oboehm
    ready for release

    Revision 1.16  2009/12/28 21:54:06  oboehm
    update to next snapshot of patterntesting-parent

    Revision 1.15  2009/12/27 21:50:17  oboehm
    some Javadoc warnings fixed

    Revision 1.14  2009/12/20 17:10:10  oboehm
    FindBugs and Checkstyle warnings fixed
    ready for delivery

    Revision 1.13  2009/11/06 21:33:58  oboehm
    license info added

    Revision 1.12  2009/10/02 06:49:32  oboehm
    some common dependencies moved to patterntesting-parent

    Revision 1.11  2009/09/18 14:16:52  oboehm
    javadoc warnings removed

    Revision 1.10  2009/09/11 17:32:24  oboehm
    delivery prepared

    Revision 1.9  2009/07/12 20:06:31  oboehm
    using now Java 6

    Revision 1.8  2009/05/12 20:06:03  oboehm
    FileHelper moved back to PatternTesting-Runtime

    $Source: /cvsroot/patterntesting/PatternTesting08/patterntesting-exception/pom.xml,v $
-->
