<?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.templates.athena</groupId>
  <artifactId>library-jar</artifactId>
  <packaging>pom</packaging>
  <version>0.1.0-SNAPSHOT</version>
  
  <properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.resources.sourceEncoding>UTF-8</project.resources.sourceEncoding>
	<!-- local-repository>C:/Users/wpilibj-buildmaster/maven-repository</local-repository-->
  </properties>
  
  <build>
    <pluginManagement>
	  <plugins>
		<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>
	  </plugins>
    </pluginManagement>

    <plugins>
      <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>
    </plugins>
  </build>

  <profiles>
	<profile>
	  <id>jenkins</id>
	  <distributionManagement>
		<repository>
		  <id>myrepository</id>
		  <url>file:${local-repository}</url>
		</repository>
	  </distributionManagement>
	</profile>
  </profiles>
</project>
