<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>net.sf.csutils</groupId>
  <artifactId>cs-utils-parent</artifactId>
  <packaging>pom</packaging>
  <name>CentraSite Utilities Parent</name>
  <version>5</version>
  <description>
CentraSite is a SOA governance registry/repository. The CentraSite
utilities are a set of open source tools, used for application development
based on CentraSite.
  </description>
  <inceptionYear>2009</inceptionYear>
  <prerequisites>
    <maven>3.0.2</maven>
  </prerequisites>
  <url>http://csutils.sf.net/</url>

  <developers>
    <developer>
      <id>jwi</id>
      <name>Jochen Wiedmann</name>
      <email>jochen.wiedmann@gmail.com</email>
    </developer>
  </developers>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses> 

  <scm>
  	<connection>scm:git:git://csutils.git.sourceforge.net/gitroot/csutils/csutils/cs-utils-parent</connection>
  	<developerConnection>scm:git:ssh://csutils.git.sourceforge.net/gitroot/csutils/csutils/cs-utils-parent</developerConnection>
  	<url>http://csutils.git.sourceforge.net/git/gitweb.cgi?p=csutils/csutils;a=tree;f=cs-utils-parent</url>
  </scm>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.3.1</version>
          <configuration>
            <source>1.6</source>
            <target>1.6</target>
          </configuration>
        </plugin>
        <plugin>
          <groupId>com.sun.tools.xjc.maven2</groupId>
          <artifactId>maven-jaxb-plugin</artifactId>
          <version>1.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.0-beta-3</version>
        </plugin>
        <plugin>
        	<groupId>org.apache.maven.plugins</groupId>
        	<artifactId>maven-release-plugin</artifactId>
        	<version>2.1</version>
        </plugin>
        <plugin>
        	<groupId>org.apache.maven.plugins</groupId>
        	<artifactId>maven-deploy-plugin</artifactId>
        	<version>2.5</version>
        	<dependencies>
        	    <dependency>
        	        <groupId>org.apache.maven.wagon</groupId>
        	        <artifactId>wagon-ssh</artifactId>
        	        <version>1.0-beta-2</version>
        	    </dependency>
        	</dependencies>
        </plugin>
      </plugins>
    </pluginManagement>
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <excludes>
          <exclude>**/*.java</exclude>
          <exclude>**/package*.html</exclude>
        </excludes>
      </resource>
      <resource>
        <directory>src/main/filtered-resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/test/java</directory>
        <excludes>
          <exclude>**/*.java</exclude>
          <exclude>**/package*.html</exclude>
        </excludes>
      </testResource>
      <testResource>
        <directory>src/test/filtered-resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ssh</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-site-xml</id>
            <goals>
              <goal>attach-descriptor</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <attach>true</attach>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <attach>true</attach>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.1</version>
            <configuration>
              <passphrase>${gpg.passphrase}</passphrase>
              <useAgent>true</useAgent>
            </configuration>
            <executions>
              <execution>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <reportSets>
          <reportSet>
            <id>default</id>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
          <reportSet>
            <id>aggregate</id>
            <reports>
              <report>aggregate</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <artifactId>maven-changes-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>changes-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <dependencyManagement>
  	<dependencies>
  	  <dependency>
  		<groupId>javax.xml.bind</groupId>
  		<artifactId>jaxb-api</artifactId>
  		<version>2.1</version>
  	  </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.6</version>
      </dependency>
  	</dependencies>
  </dependencyManagement>

  <distributionManagement>
    <repository>
      <id>${repo.id}</id>
      <name>${repo.name}</name>
      <url>${repo.url}</url>
    </repository>
    <snapshotRepository>
      <id>${repo.snapshots.id}</id>
      <name>${repo.snapshots.name}</name>
      <url>${repo.snapshots.url}</url>
    </snapshotRepository>
    <site>
      <id>${site.id}</id>
      <name>${site.name}</name>
      <url>${site.url}</url>
    </site>
  </distributionManagement>

  <properties>
    <project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
  	<repo.id>oss.sonatype.org</repo.id>
	<repo.name>CSUtils Repository on oss.sonatype.org</repo.name>
	<repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</repo.url>
	<repo.snapshots.id>oss.sonatype.org</repo.snapshots.id>
	<repo.snapshots.name>CSUtils Repository on oss.sonatype.org</repo.snapshots.name>
    <repo.snapshots.url>https://oss.sonatype.org/content/repositories/snapshots</repo.snapshots.url>
    <site.id>csutils.sf.net</site.id>
    <site.name>SourceForge</site.name>
    <site.url>scp://shell.sourceforge.net/home/project-web/csutils/htdocs</site.url>
  </properties>
</project>
