<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>net.disy.wps</groupId>
  <artifactId>wps-pd</artifactId>
  <packaging>jar</packaging>
  <name>WPS Presentation Directives Schema</name>
  <parent>
    <groupId>net.disy.wps</groupId>
    <artifactId>wps-parent</artifactId>
    <version>1.0</version>
    <relativePath>../wps-parent/pom.xml</relativePath>
  </parent>
  <dependencies>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.jvnet.jaxb2_commons</groupId>
      <artifactId>jaxb2-basics-runtime</artifactId>
      <version>0.6.0</version>
    </dependency>
    <dependency>
      <groupId>org.jvnet.ogc</groupId>
      <artifactId>ows-v_1_1_0-schema</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jvnet.ogc</groupId>
      <artifactId>gml-v_3_1_1-schema</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jvnet.ogc</groupId>
      <artifactId>se-v_1_1_0-schema</artifactId>
    </dependency>
    <!--dependency>
      <groupId>org.jvnet.ogc</groupId>
      <artifactId>wps-v_1_0_0-schema</artifactId>
    </dependency-->
  </dependencies>
  <build>
    <defaultGoal>install</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.jvnet.jaxb2.maven2</groupId>
        <artifactId>maven-jaxb2-plugin</artifactId>
        <version>0.7.4</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <strict>false</strict>
          <extension>true</extension>
          <schemaIncludes>
            <include>wps-pd/*/wps-pd.xsd</include>
            <!--value>gml/*/base/gml.xsd</value-->
          </schemaIncludes>
          <bindingIncludes>
            <include>*.xjb.xml</include>
          </bindingIncludes>
          <args>
            <arg>-XtoString</arg>
            <arg>-Xequals</arg>
            <arg>-XhashCode</arg>
            <arg>-Xcopyable</arg>
            <arg>-Xmergeable</arg>
            <arg>-Xsetters</arg>
            <arg>-Xwildcard</arg>
            <arg>-Xinject-code</arg>
            <arg>-Xinheritance</arg>
          </args>
          <episodes>
            <episode>
              <groupId>org.jvnet.ogc</groupId>
              <artifactId>ows-v_1_1_0-schema</artifactId>
            </episode>
            <episode>
              <groupId>org.jvnet.ogc</groupId>
              <artifactId>gml-v_3_1_1-schema</artifactId>
            </episode>
            <episode>
              <groupId>org.jvnet.ogc</groupId>
              <artifactId>se-v_1_1_0-schema</artifactId>
            </episode>
            <episode>
              <groupId>org.jvnet.ogc</groupId>
              <artifactId>filter-v_1_1_0-schema</artifactId>
            </episode>
            <!--episode>
              <groupId>org.jvnet.ogc</groupId>
              <artifactId>wps-v_1_0_0-schema</artifactId>
            </episode-->
          </episodes>
          <plugins>
            <plugin>
              <groupId>org.jvnet.jaxb2_commons</groupId>
              <artifactId>jaxb2-basics</artifactId>
            </plugin>
          </plugins>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <configuration>
              <tasks>
                <delete dir="${basedir}/target/generated-sources/xjc/net/opengis" />
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>src/main/resources/gml/**</exclude>
            <exclude>src/main/resources/filter/**</exclude>
            <exclude>src/main/resources/ows/**</exclude>
            <exclude>src/main/resources/se/**</exclude>
            <exclude>src/main/resources/wps/**</exclude>
            <exclude>src/main/resources/xlink/**</exclude>
            <exclude>src/main/resources/xml/**</exclude>
            <exclude>src/test/resources/**</exclude>
            <exclude>target-eclipse/**</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>