<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">
  <packaging>pom</packaging>
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.github.titisan</groupId>
  <artifactId>parent</artifactId>
  <version>0.3.1</version>
  <description>
    See https://github.com/titisan/ldap_exporter
  </description>
  <url>https://github.com/titisan/ldap_exporter</url>
  <name>parent</name>

  <modules>
    <module>ldapcollector</module>
    <module>ldap_exporter_httpserver</module>
  </modules>

  <distributionManagement>
      <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      </snapshotRepository>
      <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      </repository>
  </distributionManagement>

  <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>

  <developers>
    <developer>
      <email>titisan@gmail.com</email>
      <organization>Titisan</organization>
      <organizationUrl>https://github.com/titisan/ldap_exporter</organizationUrl>
    </developer>
  </developers>

  <scm>
      <connection>scm:git:git@github.com:titisan/ldap_exporter.git</connection>
      <developerConnection>scm:git:git@github.com:titisan/ldap_exporter.git</developerConnection>
      <url>https://github.com/titisan/ldap_exporter/tree/master</url>
  </scm>

  <build>
      <plugins>
         <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>
               <stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
            </configuration>
         </plugin>
<!--           <plugin>
              <artifactId>maven-release-plugin</artifactId>
              <groupId>org.apache.maven.plugins</groupId>
              <version>2.5</version>
              <configuration>
                <autoVersionSubmodules>true</autoVersionSubmodules>
                <useReleaseProfile>false</useReleaseProfile>
                <releaseProfiles>release</releaseProfiles>
                <goals>deploy</goals>
              </configuration>
          </plugin> -->
          <plugin>
              <artifactId>maven-deploy-plugin</artifactId>
              <groupId>org.apache.maven.plugins</groupId>
              <version>2.7</version>
          </plugin>
          <plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.4.0</version>
              <extensions>true</extensions>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>2.15</version>
          </plugin>

      </plugins>
  </build>

  <profiles>
      <profile>
          <id>release</id>
          <build>
              <plugins>
			         <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>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-source-plugin</artifactId>
                      <version>2.2.1</version>
                      <executions>
                          <execution>
                              <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                          </execution>
                      </executions>
                  </plugin>
                  <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-javadoc-plugin</artifactId>
                     <version>2.9.1</version>
                     <configuration>
                           <encoding>UTF-8</encoding>
                           <docencoding>UTF-8</docencoding>
                           <linksource>true</linksource>
                     </configuration>
                     <executions>
                           <execution>
                              <id>attach-javadocs</id>
                              <goals>
                                 <goal>jar</goal>
                              </goals>
                           </execution>
                        </executions>
                  </plugin>                  
              </plugins>
          </build>
      </profile>
  </profiles>

</project>
