
<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">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.capgemini.csd</groupId>
    <artifactId>csd-master</artifactId>
    <name>CSD Master Project</name>
<!--    <version>${csd.utils.version}</version>-->
    <version>0.3.3-RELEASE</version>
    <packaging>pom</packaging>
    <description>Amazing Utilities for the Software Development Professional - Master Project.</description>
    <url>http://kenai.com/projects/csdutilities</url>

    <licenses>
        <license>
            <name>LGPLv2.1</name>
            <url>http://www.opensource.org/licenses/lgpl-2.1.php</url>
            <distribution>manual</distribution>
        </license>
    </licenses>

    <properties>
<!--        <csd.utils.version>0.3.2-RELEASE</csd.utils.version>-->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <spring.version>3.0.4.RELEASE</spring.version>
    </properties>
    <modules>
        <module>..\csd-utils</module>
    </modules>

    <pluginRepositories>
        <pluginRepository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2</url>
            <layout>default</layout>
        </pluginRepository>
    </pluginRepositories>

    <dependencies>
	<!-- Common Unit Testing Dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.7</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-junit4</artifactId>
            <version>2.5.1</version>
            <scope>test</scope>
        </dependency>

	<!-- Common Logging Dependencies -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.15</version>
            <scope>provided</scope>
            <!-- Don't bundle these in the WAR -->
            <exclusions>
                <exclusion>
                    <groupId>javax.mail</groupId>
                    <artifactId>mail</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.jms</groupId>
                    <artifactId>jms</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jdmk</groupId>
                    <artifactId>jmxtools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jmx</groupId>
                    <artifactId>jmxri</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <showDeprecated>true</showDeprecated>
                    <encoding>${project.build.sourceEncoding}</encoding>
            	    <!-- Disable annotation processors during normal compilation -->
                    <compilerArgument>-proc:none</compilerArgument>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>

            <!-- Run annotation processors on src/main/java sources -->
            <plugin>
                <groupId>org.bsc.maven</groupId>
                <artifactId>maven-processor-plugin</artifactId>
                <version>1.3.7</version>
                <executions>
                    <execution>
                        <id>process</id>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <phase>process-classes</phase>
                        <configuration>
                            <processors>
								<!-- list of processors to use -->
							<!-- <processor>com.capgemini.csd.debt.processor.DebtProcessor</processor>-->
                            </processors>
                            <compilerArguments>
                                -Acom.capgemini.csd.debt.threshold=25
                                -Acom.capgemini.csd.debt.scan=com.capgemini.csd.debt.test
                            </compilerArguments>
                        </configuration>
                    </execution>

                    <!-- Run annotation processors on src/test/java sources -->
                    <execution>
                        <id>process-test</id>
                        <goals>
                            <goal>process-test</goal>
                        </goals>
                        <phase>generate-test-sources</phase>
                        <configuration>
                            <processors>
								<!-- list of processors to use -->
                                <processor>com.capgemini.csd.debt.processor.DebtProcessor</processor>
                            </processors>
                            <compilerArguments>
                                -Acom.capgemini.csd.debt.threshold=25
                                -Acom.capgemini.csd.debt.scan=com.capgemini.csd.debt.donotignore
                            </compilerArguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
