<?xml version="1.0" encoding="UTF-8"?>
<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>net.sf.fsp</groupId>
  <artifactId>fsplib</artifactId>
  <name>FSP Java Library</name>
  <version>1.0.0-RC10</version>
  <url>http://fsp.sourceforge.net/javalib.html</url>
  <packaging>jar</packaging>
  <description>Java FSP Library adds support for the FSP protocol to any Java
               program by implementing the URLStreamHandler factory.
  </description>
  <licenses>
     <license>
         <name>MIT License</name>
     </license>
  </licenses>
  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <issueManagement>
  </issueManagement>
  <developers>
    <developer>
       <name>Radim Kolar</name>
    </developer>
  </developers>
  <scm>
        <connection>scm:bazaar:bzr://fsp.bzr.sourceforge.net/bzrroot/fsp/javalib/</connection>
        <developerConnection>scm:bazaar:bzr+ssh://fsp.bzr.sourceforge.net/bzrroot/fsp/javalib/</developerConnection>
        <url>http://fsp.bzr.sourceforge.net/bzr/fsp/javalib/files</url>
  </scm>
  <organization>
     <name>FSP Project</name>
     <url>http://fsp.sourceforge.net</url>
  </organization>

  <dependencies>
         <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
                <scope>test</scope>
         </dependency>
  </dependencies>

  <build>
    <sourceDirectory>${basedir}/src</sourceDirectory>
    <testSourceDirectory>${basedir}/tests</testSourceDirectory>
    <outputDirectory>${basedir}/bin</outputDirectory>

    <plugins>
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.1.2</version>
       </plugin>
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.1</version>
          <executions>
             <execution>
               <phase>process-test-sources</phase>
               <goals>
                 <goal>testCompile</goal>
               </goals>
               <configuration>
                 <source>1.5</source>
                 <target>1.5</target>
               </configuration>
             </execution>
	     <execution>
	       <id>java2-compile</id>
	       <phase>compile</phase>
	       <goals>
	         <goal>compile</goal>
	       </goals>
               <configuration>
                 <source>1.2</source>
                 <target>1.2</target>
               </configuration>
	     </execution>
          </executions>
       </plugin>
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.2</version>
       </plugin>
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>3.1.1</version>
          <configuration>
             <descriptors>
                   <descriptor>zip.xml</descriptor>
             </descriptors>
	     <appendAssemblyId>false</appendAssemblyId>
          </configuration>
          <executions>
            <execution>
              <id>make-assembly</id>
              <phase>package</phase>
              <goals>
                <goal>single</goal>
              </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.1.1</version>
        <executions>
           <execution>
               <phase>compile</phase>
               <id>gen-javadoc-in-build-phase</id>
               <goals>
                   <goal>javadoc</goal>
               </goals>
           </execution>
           <execution>
                <id>attach-javadocs-jar</id>
                <phase>package</phase>
                <goals>
                   <goal>jar</goal>
                </goals>
                <configuration>
                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
                </configuration>
           </execution>
           <execution>
        	<phase>test-compile</phase>
        	<id>gen-javadoc-for-tests</id>
        	<goals>
        	  <goal>test-javadoc</goal>
        	</goals>
           </execution>
	   <execution>
               <phase>package</phase>
	       <id>attach-test-javadoc-jar</id>
	       <goals>
	         <goal>test-jar</goal>
	       </goals>	 
           </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
	      <goal>test-jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
      <groupId>org.sonatype.plugins</groupId>
      <artifactId>nexus-staging-maven-plugin</artifactId>
      <version>1.6.7</version>
      <extensions>true</extensions>
      <configuration>
        <serverId>ossrh</serverId>
        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
        <autoReleaseAfterClose>true</autoReleaseAfterClose>
      </configuration>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-gpg-plugin</artifactId>
      <version>1.6</version>
      <executions>
        <execution>
          <id>sign-artifacts</id>
          <phase>verify</phase>
          <goals>
            <goal>sign</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
    </plugins>
    <extensions>
      <extension>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-ssh-external</artifactId>
          <version>3.3.3</version>
      </extension>
    </extensions>
  </build>
</project>
