<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>sdp-api-commons</artifactId>
    <name>${project.artifactId}</name>
    <description>${project.artifactId}</description>

    <parent>
        <groupId>no.digipost</groupId>
        <artifactId>sdp-shared</artifactId>
        <version>1.1.19</version>
    </parent>

    <dependencies>

        <dependency>
            <groupId>no.digipost</groupId>
            <artifactId>sdp-xsd</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>jaxen</groupId>
            <artifactId>jaxen</artifactId>
        </dependency>

        <!-- Spring WS -->
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-xml</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


        <dependency>
            <groupId>org.apache.wss4j</groupId>
            <artifactId>wss4j-ws-security-dom</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.wss4j</groupId>
            <artifactId>wss4j-ws-security-common</artifactId>
        </dependency>

        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk15on</artifactId>
        </dependency>

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>

        <dependency>
            <groupId>com.sun.mail</groupId>
            <artifactId>mailapi</artifactId>
            <scope>runtime</scope>
        </dependency>

        <!-- Spring -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-oxm</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
        </dependency>


        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>


        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-library</artifactId>
			<scope>test</scope>
		</dependency>
        <dependency>
            <groupId>org.easytesting</groupId>
            <artifactId>fest-assert-core</artifactId>
            <version>${org.easytesting.fest.assert.core.version}</version>
            <scope>test</scope>
        </dependency>


    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.jasig.maven</groupId>
                <artifactId>maven-notice-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>com.mycila</groupId>
                <artifactId>license-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>test</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <phase>test</phase>
                        <configuration>
                            <rules>
                                <bannedDependencies>
                                    <excludes>
                                        <exclude>*:*:*:jar:compile</exclude>
                                    </excludes>
                                    <includes>
                                        <include>aopalliance:aopalliance</include>
                                        <include>com.sun.xml.wsit:wsit-rt</include>
                                        <include>commons-codec:commons-codec</include>
                                        <include>commons-io:commons-io</include>
                                        <include>javax.xml.stream:stax-api</include>
                                        <include>jaxen:jaxen</include>
                                        <include>joda-time:joda-time</include>
                                        <include>no.digipost:sdp-xsd</include>
                                        <include>org.apache.commons:commons-lang3</include>
                                        <include>org.apache.geronimo.specs:geronimo-javamail_1.4_spec</include>
                                        <include>org.apache.httpcomponents:httpcore</include>
                                        <include>org.apache.santuario:xmlsec</include>
                                        <include>org.apache.wss4j:wss4j-ws-security-common</include>
                                        <include>org.apache.wss4j:wss4j-ws-security-dom</include>
                                        <include>org.bouncycastle:bcprov-jdk15on</include>
                                        <include>org.codehaus.woodstox:stax2-api</include>
                                        <include>org.codehaus.woodstox:woodstox-core-asl</include>
                                        <include>org.jasypt:jasypt</include>
                                        <include>org.jvnet.jaxb2_commons:jaxb2-basics-runtime</include>
                                        <include>org.opensaml:opensaml</include>
                                        <include>org.opensaml:openws</include>
                                        <include>org.opensaml:xmltooling</include>
                                        <include>org.slf4j:jcl-over-slf4j</include>
                                        <include>org.slf4j:slf4j-api</include>
                                        <include>org.springframework:spring-aop</include>
                                        <include>org.springframework:spring-beans</include>
                                        <include>org.springframework:spring-context</include>
                                        <include>org.springframework:spring-core</include>
                                        <include>org.springframework:spring-expression</include>
                                        <include>org.springframework:spring-oxm</include>
                                        <include>org.springframework:spring-tx</include>
                                        <include>org.springframework:spring-web</include>
                                        <include>org.springframework:spring-webmvc</include>
                                        <include>org.springframework.security:spring-security-core</include>
                                        <include>org.springframework.ws:spring-ws-core</include>
                                        <include>org.springframework.ws:spring-ws-security</include>
                                        <include>org.springframework.ws:spring-xml</include>
                                        <include>wsdl4j:wsdl4j</include>
                                    </includes>
                                    <searchTransitive>true</searchTransitive>
                                    <message>Maven-avhengigheter har forandret seg. Sjekk at alle lisenser er OK før
                                        distribusjon. Husk også å oppdatere fila «NOTICE».
                                    </message>
                                </bannedDependencies>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
