<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<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.google.code.maven-scm-provider-svnjava</groupId>
  <artifactId>maven-scm-provider-svnjava</artifactId>
  <version>1.4</version>
  <name>Maven SCM Subversion Provider - Java Impl.</name>
  <description>This provider use a non ASL license compatible library (svnkit http://svnkit.com/).</description>

  <url>http://code.google.com/p/maven-scm-provider-svnjava/</url>
  
  <licenses>
    <license>
      <name>ASF</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>
      
  <scm>
    <connection>scm:svn:http://maven-scm-provider-svnjava.googlecode.com/svn/tags/maven-scm-provider-svnjava-1.4</connection>
    <developerConnection>scm:svn:https://maven-scm-provider-svnjava.googlecode.com/svn/tags/maven-scm-provider-svnjava-1.4</developerConnection>
    <url>http://code.google.com/p/maven-scm-provider-svnjava/source/list/tags/maven-scm-provider-svnjava-1.4</url>
  </scm>
  
  <properties>
    <scmVersion>1.2</scmVersion>
    <!--  distUrlReleaseRepo>dav:https://maven-scm-provider-svnjava.googlecode.com/svn/repository/release/</distUrlReleaseRepo-->
    <distUrlReleaseRepo>http://oss.sonatype.org/service/local/staging/deploy/maven2/</distUrlReleaseRepo>
    <!--  distUrlSnapshotRepo>dav:https://maven-scm-provider-svnjava.googlecode.com/svn/repository/snapshots/</distUrlSnapshotRepo-->
    <distUrlSnapshotRepo>http://oss.sonatype.org/content/repositories/googlecode-snapshots/</distUrlSnapshotRepo>
    <siteUrlDis>dav:https://maven-scm-provider-svnjava.googlecode.com/svn/wiki/site</siteUrlDis>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    
  </properties>
  
  <dependencies>
    <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-provider-svn-commons</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>org.tmatesoft.svnkit</groupId>
      <artifactId>svnkit</artifactId>
      <version>1.2.3.5521</version>
    </dependency>
    <!--
        this allows us to use wincrypt encrypted passwords from
        %APPDATA%\Subversion on windows
   	 -->   
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna</artifactId>
      <version>3.0.5</version>
    </dependency>
     
    <!-- test -->
    <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-provider-svntest</artifactId>
      <version>1.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <!--excludes>
            <exclude>**/*TckTest.java</exclude>
          </excludes-->
          <systemProperties>
            <property>
              <name>scmUrlProject</name>
              <value>${project.scm.url}</value>
            </property>
          </systemProperties>
          
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-component-metadata</artifactId>
        <version>1.0-beta-1</version>
        <executions>
          <execution>
            <goals>
              <goal>generate-metadata</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.0-beta-9</version>
        <configuration>
          <useReleaseProfile>true</useReleaseProfile>
          <goals>deploy</goals>
          <arguments>-Psign</arguments>
        </configuration>
      </plugin>

    </plugins>
  </build>
  
  <distributionManagement>
    <repository>
      <id>oss.sonatype.org</id>
      <name>oss.sonatype.org</name>
      <url>${distUrlReleaseRepo}</url>
    </repository>
    <snapshotRepository>
      <id>oss.sonatype.org</id>
      <name>oss.sonatype.org snapshots</name>
      <url>${distUrlSnapshotRepo}</url>
    </snapshotRepository>
    <site>
      <id>google-maven-snapshot-repository</id>
      <name>Google Maven Site Repository</name>
      <url>${siteUrlDis}</url>
    </site>
  </distributionManagement>
  
  <repositories>
    <repository>
      <id>maven2-repository.dev.java.net</id>
      <url>http://download.java.net/maven/2/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <!-- 
    <repository>
      <id>apache.snapshots</id>
      <url>http://repository.apache.org/content/repositories/snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
     -->
  </repositories>

  <profiles>
    <profile>
      <id>sign</id>
      <build>
        <plugins>
          <!-- We want to sign the artifact, the POM, and all attached artifacts -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <passphrase>${gpg.passphrase}</passphrase>
            </configuration>
            <executions>
              <execution>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
</project>
