<?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>


    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

  <groupId>org.automon</groupId>
  <artifactId>automon_parent</artifactId>
  <version>1.0.3</version>
  <packaging>pom</packaging>
  <name>automon parent</name>

  <description>Automon combines the power of AOP (AspectJ) with any monitoring or logging tools you already use to declaratively monitor your Java code, the JDK, and dependent libraries.
  </description>
  <url>http://www.automon.org</url>

  <licenses>
      <license>
          <name>Automon License (Apache 2.0)</name>
          <url>https://github.com/stevensouza/automon/blob/master/LICENSE</url>
          <distribution>repo</distribution>
      </license>
  </licenses>

  <scm>
      <url>https://github.com/stevensouza/automon</url>
      <connection>scm:git:git://github.com:stevensouza/automon.git</connection>
      <developerConnection>scm:git:git@github.com:stevensouza/automon.git</developerConnection>
  </scm>

  <developers>
      <developer>
          <id>stevensouza</id>
          <name>Steve Souza</name>
          <email>steve@stevesouza.com</email>
      </developer>
  </developers>

  <modules>
    <module>automon</module>
    <module>helloworld_unwoven</module>
    <module>helloworld_woven</module>
    <module>spring_woven</module>
    <module>helloworld_unwoven_jamon</module>
    <module>unwoven_jdk</module>
    <module>webapp_unwoven</module>
    <module>spring_aop</module>
  </modules>

  <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <!-- note for aspectj compiling above 1.5 i found some errors if the pointcut let everything be monitored -->
      <jdk.version>1.8</jdk.version>
      <maven.javadoc.plugin.version>2.9.1</maven.javadoc.plugin.version>
      <maven.source.plugin.version>2.2.1</maven.source.plugin.version>
  </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${maven.javadoc.plugin.version}</version>
                <!-- The following is needed for jdk 1.8 javadocs generation or failure. -->
                <configuration>
                    <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${maven.source.plugin.version}</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>


    <distributionManagement>
        <snapshotRepository>
            <id>sonatype-nexus-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>sonatype-nexus-staging</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <profiles>
        <!--
             Profile for releases to sign artifacts
        -->
        <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>

                </plugins>
            </build>
        </profile>
    </profiles>

</project>
