pom.xml 3.05 KB
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>us.rader.examples</groupId>
  <artifactId>examples</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>examples</name>
  <description>Various coding examples and guidelines</description>
  <url>http://www.kirkrader.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <profiles>
    <profile>
      <id>linux</id>
      <activation>
        <os>
          <family>unix</family>
        </os>
      </activation>
      <properties>
        <doxygen.exe>/usr/bin/doxygen</doxygen.exe>
      </properties>
    </profile>
    <profile>
      <id>osx</id>
      <activation>
      <os>
        <family>mac</family>
        <name>mac os x</name>
      </os>
      </activation>
      <properties>
        <doxygen.exe>/usr/local/bin/doxygen</doxygen.exe>
      </properties>
    </profile>
    <profile>
      <id>windows</id>
      <activation>
        <os>
          <family>Windows</family>
        </os>
      </activation>
      <properties>
        <doxygen.exe>C:\Program Files\doxygen\doxygen</doxygen.exe>
      </properties>
    </profile>
  </profiles>

  <distributionManagement>
    <site>
      <id>site</id>
      <name>Site</name>
      <!-- TODO: What should the site URL be? -->
      <url>scp://rader.us/docs/${project.artifactId}/${project.version}</url>
    </site>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.9</version>
      </plugin>
      <plugin>
        <artifactId>exec-maven-plugin</artifactId>
        <groupId>org.codehaus.mojo</groupId>
        <version>1.4.0</version>
        <inherited>false</inherited>
        <executions>
          <execution>
            <id>1-build-doxygen</id>
            <phase>package</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>${doxygen.exe}</executable>
              <workingDirectory>${basedir}</workingDirectory>
              <environmentVariables>
                <GROUPID>${project.groupId}</GROUPID>
                <ARTIFACTID>${project.artifactId}</ARTIFACTID>
                <VERSION>${project.version}</VERSION>
                <TARGET>${project.build.directory}</TARGET>
                <DESCRIPTION>${project.build.description}</DESCRIPTION>
                <SOURCE>${project.basedir}</SOURCE>
              </environmentVariables>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <modules>
    <module>unit-testing</module>
    <module>using-doxygen</module>
    <module>logging</module>
    <module>tt</module>
  </modules>

</project>