<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>
  <groupId>com.amazon.aes.webservices.client</groupId>
  <artifactId>ec2-java-client</artifactId>
  <version>20080327</version>

  <name>Amazon EC2 Library in Java</name>
  <description>Amazon EC2 Library in Java</description>

  <properties>
    <api.version>2008-02-01</api.version>
    <wsgen.src>${project.build.directory}/generated-sources/wsgen</wsgen.src>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.codehaus.xfire</groupId>
      <artifactId>xfire-all</artifactId>
      <version>1.2.6</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.12</version>
    </dependency>
    <dependency>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>2.7.0</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask"
                  classpathref="maven.compile.classpath" />
                <wsgen outputDirectory="${wsgen.src}" wsdl="${basedir}/schemas/${api.version}/ec2.wsdl" overwrite="true"
                  generateServerStubs="false" forceBare="true">
                </wsgen>
              </tasks>
              <sourceRoot>${wsgen.src}</sourceRoot>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>