<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">
	<parent>
    <groupId>MOA.id</groupId>
    <artifactId>moa-id</artifactId>
    <version>2.x</version>
  </parent>	
	<modelVersion>4.0.0</modelVersion>
	<groupId>eu.stork</groupId>
	<artifactId>Commons</artifactId>
	<packaging>jar</packaging>
	<name>Stork Commons</name>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<stork.version>1.4.0</stork.version>
		<opensaml.version>2.6.3</opensaml.version>
	</properties>
	<version>${stork.version}</version>
  <description>
        The STORKCommons library provides beans, Java Interfaces and utility classes to integrate PEPS and SAML Engine.
  </description>
   
  <repositories>
		<repository>
			<id>shibboleth.internet2.edu</id>
			<name>Internet2</name>
			<url>https://build.shibboleth.net/nexus/content/groups/public/</url>
		</repository>
	</repositories> 
   
	<dependencies>

		<!-- Joda -->
		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
			<version>2.3</version>
		</dependency>

		<!-- Log4J -->
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.17</version>
			<exclusions>
				<exclusion>
					<groupId>javax.jms</groupId>
					<artifactId>jms</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jdmk</groupId>
					<artifactId>jmxtools</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jmx</groupId>
					<artifactId>jmxri</artifactId>
				</exclusion>
				<exclusion>
					<artifactId>mail</artifactId>
					<groupId>javax.mail</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
  		<groupId>org.opensaml</groupId>
  		<artifactId>opensaml</artifactId>
			<exclusions>
				<exclusion>
				    <groupId>org.slf4j</groupId>
				    <artifactId>slf4j-api</artifactId>
				</exclusion>
				<exclusion>
				 	<groupId>org.slf4j</groupId>
				    <artifactId>slf4j-simple</artifactId>
				</exclusion>
				<exclusion>
				    <groupId>org.slf4j</groupId>
				    <artifactId>jcl-over-slf4j</artifactId>
				</exclusion>
				<exclusion>
				    <groupId>org.slf4j</groupId>
				    <artifactId>log4j-over-slf4j</artifactId>
				</exclusion>
				<exclusion>
				    <groupId>org.slf4j</groupId>
				    <artifactId>jul-to-slf4j</artifactId>
				</exclusion>
			</exclusions>			
		</dependency>

		<!-- Bouncy Castle -->
		<dependency>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-jdk16</artifactId>
			<version>1.46</version>
		</dependency>

		<!-- Servlet API -->
		<!-- provided by Application Server -->
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.6</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>commons</finalName>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<source>1.6</source>
						<target>1.6</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<configuration>
            			<runOrder>reversealphabetical</runOrder>
						<skip>false</skip>
          				<includes>
                            <runOrder>reversealphabetical</runOrder>
				            <include>**/PEPSUtilTest.java</include>
				            <include>**/PersonalAttributeTestCase.java</include>
				            <include>**/PersonalAttributeListTestCase.java</include>
            				<include>**/DateUtilTestCase.java</include>
				            <include>**/AttributeUtilTest.java</include>
          				</includes>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
		
		           	 
<!-- 		          <plugin>
            		<groupId>org.codehaus.mojo</groupId>
            		<artifactId>properties-maven-plugin</artifactId>
            		<version>1.0-alpha-2</version>
            		<executions>
                		<execution>
                    		<phase>initialize</phase>
                    		<goals>
                        		<goal>read-project-properties</goal>
                    		</goals>
                    		<configuration>
    	                   		<files>
		                            <file>${basedir}/../../../moa-id.properties</file>
      		                  </files>
          		          </configuration>
              		  </execution>
            		</executions>
        		</plugin> -->
		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.9.1</version>
				<configuration>
					<links>
						<link>http://commons.apache.org/lang/api/</link>
						<link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
						<link>http://www.bouncycastle.org/docs/docs1.6/</link>
						<link>http://docs.oracle.com/javase/6/docs/api/</link>
					</links>
				</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>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
				<includes>
					<include>log4j.xml</include>
				</includes>
			</testResource>
		</testResources>
	</build>
	<profiles>
		<profile>
			<id>embedded</id>
			<build>
				<resources>
					<resource>
						<directory> ${project.basedir}/src/main/resources</directory>
					</resource>
					<resource>
						<directory> ${project.basedir}/src/main/config/embedded</directory>
					</resource>
				</resources>
			</build>
		</profile>
		<profile>
			<id>metrics</id>
			<build>
			<plugins>
				<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.5.1</version>
					<configuration>
						<formats>
							<format>html</format>
							<format>xml</format>
							</formats>
					</configuration>
				</plugin>
			</plugins>
			</build>
		</profile>
		</profiles>
</project>