<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>dk.sosi.seal</groupId>
        <artifactId>modules</artifactId>
        <version>2.5.15-SNAPSHOT</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>dk.sosi.demo.provider</groupId>
    <artifactId>provider</artifactId>
    <packaging>war</packaging>
    <name>SOSI Seal Demo Provider</name>
    <url>http://www.sosi.dk</url>
    <description>Demo Provider using SOSI Seal Component</description>

    <dependencies>
        <dependency>
            <groupId>dk.sosi.seal</groupId>
            <artifactId>seal</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>axis</groupId>
            <artifactId>axis</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.4</version>
        </dependency>
          
    </dependencies>

    <build>
        <plugins>
        <plugin>
		   <groupId>org.codehaus.mojo</groupId>
		   <artifactId>axistools-maven-plugin</artifactId>
		   <configuration>
			  <outputDirectory>src/main/java</outputDirectory>
			  
			  <testCases>false</testCases>
			  <serverSide>true</serverSide>
			  <subPackageByFileName>true</subPackageByFileName>
		   </configuration>
		   <executions>
			 <execution>
			   <goals>
				 <goal>wsdl2java</goal>
			   </goals>
			 </execution>
		   </executions>
			<dependencies>
				<dependency>
					<groupId>axis</groupId>
					<artifactId>axis</artifactId>
					<version>1.3</version>
      			</dependency>
			</dependencies>
		</plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>tomcat-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                    	<id>deploy</id>
                        <phase>deploy</phase>
                        <configuration>
                            <tasks>
                                <taskdef name="axis-admin" classname="org.apache.axis.tools.ant.axis.AdminClientTask" classpathref="maven.plugin.classpath" />
                                <axis-admin port="8080" hostname="localhost" failonerror="true" servletpath="provider/services/AdminService" debug="true" xmlfile="deploy.wsdd" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>xerces</groupId>
                        <artifactId>xercesImpl</artifactId>
                        <version>2.8.0</version>
                        <scope>compile</scope>
                    </dependency>
                    <dependency>
                        <groupId>axis</groupId>
                        <artifactId>axis-ant</artifactId>
                        <version>1.3</version>
                    </dependency>
                    <dependency>
                        <groupId>axis</groupId>
                        <artifactId>axis</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <inherited>true</inherited>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>test</phase>
                        <goals>
                            <goal>jar</goal>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>bundle-test-jar</id>
                        <phase>test</phase>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

        <finalName>provider</finalName>
    </build>

</project>
