<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.qubit.solution.fenixedu.build</groupId>
        <artifactId>qub-fenixedu-project</artifactId>
        <version>3.1.0</version>
    </parent>

    <groupId>com.qubit.solution.fenixedu</groupId>
    <artifactId>bennu-qub.module.santander-integration</artifactId>
    <version>2.0.0</version>
    <packaging>jar</packaging>

    <name>Santander Integration</name>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-ri</artifactId>
		<version>4.0.2</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-rt</artifactId>
                <version>4.0.2</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>com.qubit.solution.fenixedu</groupId>
                <artifactId>fenixedu-oss-dependency-management</artifactId>
                <version>789</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.fenixedu</groupId>
            <artifactId>bennu-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.fenixedu</groupId>
            <artifactId>bennu-scheduler</artifactId>
        </dependency>
        <dependency>
            <groupId>org.fenixedu</groupId>
            <artifactId>bennu-portal</artifactId>
        </dependency>
        <dependency>
            <groupId>org.fenixedu</groupId>
            <artifactId>bennu-io</artifactId>
        </dependency>

        <dependency>
            <groupId>com.qubit.solution.fenixedu</groupId>
            <artifactId>bennu-webservices-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.qubit.solution.fenixedu</groupId>
            <artifactId>fenixedu-academic-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.fenixedu</groupId>
            <artifactId>fenixedu-academic-extensions</artifactId>
        </dependency>

        <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-rt</artifactId>
        </dependency>

    </dependencies>


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>initialize</id>
                        <phase>initialize</phase>
                        <configuration>
                            <target>
                                <property name="basedir" refid="maven.project"/>

                                <echo
                                        message="ANTRUN: copy resources and convert to UTF-8 to webapp/WEB-INF/resources"/>

                                <copy todir="${basedir}/src/main/webapp/WEB-INF/resources"
                                      encoding="ISO-8859-15" outputencoding="UTF-8" overwrite="true">
                                    <fileset dir="${basedir}/src/main/resources/resources/"/>
                                </copy>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
                            <silent>true</silent>
                            <artifactItems>
				     <artifactItem>
                                                                        <groupId>jakarta.xml.bind</groupId>
                                                                        <artifactId>jakarta.xml.bind-api</artifactId>
                                                                        <version>4.0.2</version>
                                                                        <type>jar</type>
                                                                </artifactItem>
                                                                <artifactItem>
                                                                        <groupId>jakarta.xml.ws</groupId>
                                                                        <artifactId>jakarta.xml.ws-api</artifactId>
                                                                        <version>4.0.2</version>
                                                                        <type>jar</type>
                                                                </artifactItem>

                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>
</project>
