<?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">
    <parent>
        <artifactId>msbutil</artifactId>
        <groupId>dk.nsp.msbutil</groupId>
        <version>1.0.6</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>nas-client</artifactId>

    <dependencies>
      <dependency>
	<groupId>dk.nsp.msbutil</groupId>
	<artifactId>msbutil-interface</artifactId>
	<version>${project.version}</version>
      </dependency>
      <dependency>
	<groupId>dk.nsp.msbutil</groupId>
	<artifactId>msbutil-common</artifactId>
	<version>${project.version}</version>
      </dependency>

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

      <!-- Test dependencies -->			
      <dependency>
	<groupId>junit</groupId>
	<artifactId>junit</artifactId>
	<scope>test</scope>
      </dependency>
    </dependencies>

    <build>
      <finalName>nas-client</finalName>
      <plugins>
	<plugin>
	  <groupId>org.codehaus.mojo</groupId>
	  <artifactId>build-helper-maven-plugin</artifactId>
	  <version>1.5</version>
	  <executions>
	    <execution>
	      <id>add-source</id>
	      <phase>generate-sources</phase>
	      <goals>
		<goal>add-source</goal>
	      </goals>
	      <configuration>
		<sources>
		  <source>${project.build.directory}/generated-sources/jaxb</source>
		  <source>${project.build.directory}/generated-sources/java</source>
		</sources>
	      </configuration>
	    </execution>
	  </executions>
	</plugin>

	<plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jaxb2-maven-plugin</artifactId>
          <version>2.5.0</version>
          <executions>
            <execution>
              <id>xjc</id>
              <goals>
		<goal>xjc</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <sources>
              <source>src/main/resources/xsd/medcom.xsd</source>
              <source>src/main/resources/xsd/wsse.xsd</source>
              <source>src/main/resources/xsd/b-2.xsd</source>
              <source>src/main/resources/xsd/ID_MCP-v14.xsd</source>
            </sources>
          </configuration>
	</plugin>
      </plugins>
    </build>
</project>
