<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
	     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>edu.wpi.first.wpilib.networktables</groupId>
  <artifactId>OutlineViewer</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>jar</packaging>

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

  <dependencies>
    <dependency>
      <groupId>edu.wpi.first.wpilib.networktables.java</groupId>
      <artifactId>NetworkTables</artifactId>
      <version>0.1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>uk.gov.nationalarchives.thirdparty.netbeans</groupId>
      <artifactId>org-netbeans-swing-outline</artifactId>
      <version>7.2</version>
    </dependency>
  </dependencies>
  
  <profiles>
    <profile>
      <id>docline-java8-disable</id>
      <activation>
	    <jdk>[1.8,</jdk>
      </activation>

      <build>
	    <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </plugin>
	    </plugins>
      </build>
    </profile>
  </profiles>
  
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
	  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
		  <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <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>
		<executions>
		  <execution>
            <id>attach-javadoc</id>
			<phase>package</phase>
            <goals>
			  <goal>jar</goal>
            </goals>
		  </execution>
		</executions>
	  </plugin>
      <plugin>
	    <groupId>org.apache.maven.plugins</groupId>
	    <artifactId>maven-enforcer-plugin</artifactId>
	    <version>1.3.1</version>
	    <executions>
	      <execution>
	        <id>enforce-maven</id>
	        <goals>
	          <goal>enforce</goal>
	        </goals>
	        <configuration>
	          <rules>
		        <requireJavaVersion>
		          <version>1.7.0</version>
		          <message>WPILib has been tested with Java 7 (aka. 1.7.0).</message>
		        </requireJavaVersion>
	          </rules>    
	        </configuration>
	      </execution>
	    </executions>
      </plugin>
	  <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-jar-plugin</artifactId>
		<version>2.5</version>
		<configuration>
		  <archive>
			<manifest>
			  <mainClass>edu.wpi.first.tableviewer.TableViewer</mainClass>
			</manifest>
		  </archive>
		</configuration>
	  </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <!-- put your configurations here -->
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
