<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>
  
  <name>JBoss Web Services - Stack Native Resources</name>
  <artifactId>jbossws-native-resources</artifactId>
  <packaging>jar</packaging>
  
  <!-- Parent -->
  <parent>
    <groupId>org.jboss.ws.native</groupId>
    <artifactId>jbossws-native</artifactId>
    <version>4.0.0.CR2</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  
  <!-- plugins -->
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <ant antfile="src/main/scripts/zip-other-configs.xml">
                  <property name="project.build.finalName" value="${project.build.finalName}" />
                </ant>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
           <execution>
            <id>all</id>
            <goals><goal>jar</goal></goals>
            <phase>package</phase>
            <configuration>
              <excludes>
                <exclude>**/jbossws-jboss700/**</exclude>
                <exclude>**/jbossws-jboss701/**</exclude>
                <exclude>**/jbossws-jboss702/**</exclude>
              </excludes>
            </configuration>
          </execution>
          <execution>
            <id>jboss700</id>
            <goals><goal>jar</goal></goals>
            <phase>package</phase>
            <configuration>
              <classifier>jboss700</classifier>
              <classesDirectory>${project.build.directory}/classes/resources/jbossws-jboss700/jbossws.beans</classesDirectory>
            </configuration>
          </execution>
          <execution>
            <id>jboss701</id>
            <goals><goal>jar</goal></goals>
            <phase>package</phase>
            <configuration>
              <classifier>jboss701</classifier>
              <classesDirectory>${project.build.directory}/classes/resources/jbossws-jboss701/jbossws.beans</classesDirectory>
            </configuration>
          </execution>
          <execution>
            <id>jboss702</id>
            <goals><goal>jar</goal></goals>
            <phase>package</phase>
            <configuration>
              <classifier>jboss702</classifier>
              <classesDirectory>${project.build.directory}/classes/resources/jbossws-jboss702/jbossws.beans</classesDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>
