<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>

   <parent>
      <groupId>org.rhq</groupId>
      <artifactId>rhq-plugins-parent</artifactId>
      <version>1.2.0.GA</version>
   </parent>

   <groupId>org.rhq</groupId>
   <artifactId>rhq-perftest-plugin</artifactId>
   <packaging>jar</packaging>

   <name>RHQ Performance Test Plugin</name>
   <description>a plugin for performance testing</description>

   <scm>
      <connection>scm:svn:http://svn.rhq-project.org/repos/rhq/tags/RHQ_1_2_0_GA</connection>
      <developerConnection>scm:svn:http://svn.rhq-project.org/repos/rhq/tags/RHQ_1_2_0_GA</developerConnection>
   </scm>

   <properties>
      <scm.module.path>modules/plugins/perftest/</scm.module.path>
   </properties>

   <build>
      <plugins>
         <plugin>
            <groupId>com.sun.tools.xjc.maven2</groupId>
            <artifactId>maven-jaxb-plugin</artifactId>
            <version>1.0</version>
            <executions>
               <execution>
                  <goals>
                     <goal>generate</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <generatePackage>org.rhq.plugins.perftest.scenario</generatePackage>
               <generateDirectory>${basedir}/target/generated-sources/xjc</generateDirectory>
            </configuration>
         </plugin>

         <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
               <source>1.5</source>
            </configuration>
         </plugin>

         <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
               <skip>true</skip>
            </configuration>
            <executions>
               <execution>
                  <id>surefire-it</id>
                  <phase>integration-test</phase>
                  <goals>
                     <goal>test</goal>
                  </goals>
                  <configuration>
                     <skip>${maven.test.skip}</skip>
                     <excludedGroups>${rhq.testng.excludedGroups}</excludedGroups>
                     <useSystemClassLoader>false</useSystemClassLoader>
                     <argLine>-Djava.library.path=${basedir}/target/itest/lib</argLine>
                     <!--
                     <argLine>-Djava.library.path=${basedir}/target/itest/lib -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y</argLine>
                     -->

                     <systemProperties>
                        <property>
                           <name>project.artifactId</name>
                           <value>${project.artifactId}</value>
                        </property>
                        <property>
                           <name>project.version</name>
                           <value>${project.version}</value>
                        </property>
                     </systemProperties>
                  </configuration>
               </execution>
            </executions>
         </plugin>

      </plugins>
   </build>

</project>