<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>org.jboss.mx</groupId>
    <artifactId>jboss-mx</artifactId>
    <version>6.0.0.Beta1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss.mx</groupId>
  <artifactId>jboss-j2se</artifactId>
  <packaging>jar</packaging>
  <name>JBossMX J2SE</name>
  <url>http://www.jboss.org/jbossmx</url>
  <description>JBossMX (j2se module)</description>
  <build>
    <sourceDirectory>src/main</sourceDirectory>
    <testSourceDirectory>src/tests</testSourceDirectory>
    <resources>
      <resource>
        <directory>src/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>test-jar</id>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>assembly</id>
            <goals>
              <goal>attached</goal>
            </goals>
            <phase>package</phase>
          </execution>
        </executions>
        <configuration>
          <descriptorSourceDirectory>src/assembly</descriptorSourceDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>create-output</id>
            <goals>
              <goal>run</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <tasks>
                                
                <mkdir dir="output/etc" />
                <copy todir="output/etc" filtering="yes">
                  <fileset dir="src/etc">
                    <include name="**" />
                  </fileset>
                </copy>
                
                <mkdir dir="output/lib" />
                <copy file="target/${artifactId}.jar" tofile="output/lib/jboss-j2se.jar" />
                <copy file="target/${artifactId}-jboss-jmx-compliance.jar" tofile="output/lib/jboss-jmx-compliance.jar" />
                <copy file="target/${artifactId}-jmxcompliance-MoreMBeans.jar" tofile="output/lib/jmxcompliance-MoreMBeans.jar" />
                <copy file="target/${artifactId}-jmxcompliance-MyMBeans.jar" tofile="output/lib/jmxcompliance-MyMBeans.jar" />
                <copy file="target/${artifactId}-jmxcompliance-MyMBeans2.jar" tofile="output/lib/jmxcompliance-MyMBeans2.jar" />
                <copy file="target/${artifactId}-jmxcompliance-Test.jar" tofile="output/lib/jmxcompliance-Test.jar" />
                
             </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <id>clean-output</id>
            <goals>
              <goal>clean</goal>
            </goals>
            <phase>clean</phase>
            <configuration>
              <filesets>
                <fileset>
                  <directory>output</directory>
                </fileset>
              </filesets>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <!-- Compile (global) dependencies -->
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-common-core</artifactId>
    </dependency>
    <dependency>
      <groupId>oswego-concurrent</groupId>
      <artifactId>concurrent</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.integration</groupId>
      <artifactId>jboss-classloading-spi</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.logging</groupId>
      <artifactId>jboss-logging-spi</artifactId>
    </dependency>
    <!-- Test scope dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
</project>
