2 Replies Latest reply on Aug 3, 2014 2:34 PM by devcoder98

    Arquillian test fails :java.lang.NoSuchMethodError: org.jboss.arquillian.test.spi.TestResult.setEnd(J)V

    lake.land

      Hi, I am trying to run a simple CDI test using Arquillian in JBoss 7.2. The test deploys and runs properly but then Arquillian throws an exception when trying to return the test result.

       

      Any ideas on how to resolve this would be greatly appreciated.

       

      Thanks for you time!

       

      Gradle dependencies:

       

      dependencies {

          providedCompile group: 'javax.inject', name: 'javax.inject', version:'1'

          providedCompile group: 'org.jboss.spec.javax.annotation', name: 'jboss-annotations-api_1.1_spec', version: '1.0.1.Final'

          providedCompile group: 'org.jboss.spec.javax.ejb', name: 'jboss-ejb-api_3.1_spec', version: '1.0.2.Final'

          providedCompile 'javax:javaee-api:6.0'

          providedCompile 'org.slf4j:slf4j-api:1.6.1'

       

          testCompile 'junit:junit:4.11'

          testCompile 'org.jboss.arquillian:arquillian-bom:1.1.4.Final'

          testCompile 'org.jboss.arquillian.junit:arquillian-junit-container:1.1.4.Final'

       

          testRuntime 'org.jboss.as:jboss-as-arquillian-container-managed:7.2.0.Final'

          testRuntime 'org.jboss.arquillian.protocol:arquillian-protocol-servlet:1.1.4.Final'

      }

       

       

      Test appears to run successfully...

      ...

      15:31:43,951 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "arquillian-service" (runtime-name : "arquillian-service")

      15:31:44,629 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014900: Content added at location ..\jboss-as-7.2.0.Final\standalone\data\content\7c\a22f38967275c09a05567bcf13d5b979a5c968\content

      15:31:44,633 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "mytest.jar" (runtime-name: "mytest.jar")

      15:31:44,681 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016002: Processing weld deployment mytest.jar

      15:31:44,698 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: mytest.jar

      15:31:44,782 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900 1.1.10 (Final)

      15:31:44,801 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment mytest.jar

      15:31:44,802 INFO  [org.jboss.as.arquillian] (MSC service thread 1-1) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."mytest.jar",unit=mytest.jar,tests=[org.foo.TestStuff]]

      15:31:45,321 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "mytest.jar" (runtime-name : "mytest.jar")

       

      15:31:45,771 INFO  [stdout] (pool-2-thread-1) BEGIN firstTest

      15:31:45,772 INFO  [stdout] (pool-2-thread-1) new name [Foo]

      15:31:45,772 INFO  [stdout] (pool-2-thread-1) END firstTest

       

       

      15:31:45,868 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016009: Stopping weld service for deployment mytest.jar

      15:31:45,888 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment mytest.jar (runtime-name: mytest.jar) in 29ms

      15:31:45,911 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014901: Content removed from location ...\jboss-as-7.2.0.Final\standalone\data\content\7c\a22f38967275c09a05567bcf13d5b979a5c968\content

      15:31:45,912 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018558: Undeployed "mytest.jar" (runtime-name: "mytest.jar")

      15:31:45,941 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment arquillian-service (runtime-name: arquillian-service) in 10ms

      15:31:45,963 INFO  [org.jboss.as.repository] (management-handler-thread - 4) JBAS014901: Content removed from location ...\jboss-as-7.2.0.Final\standalone\data\content\76\13c66461e165fb2425441b1c50377b713e2189\content

      15:31:45,964 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018558: Undeployed "arquillian-service" (runtime-name: "arquillian-service")

       

       

      Test appears to run successfully but there is an exception processing the return value:

       

      java.lang.NoSuchMethodError: org.jboss.arquillian.test.spi.TestResult.setEnd(J)V

      at org.jboss.arquillian.protocol.jmx.JMXMethodExecutor.invoke(JMXMethodExecutor.java:75)

      at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:109)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)

      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

      at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:57)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)

      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

      at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

      at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

      at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)

      at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

      at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:266)

      at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:229)

      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)

      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)

      at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:243)

      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)

      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)

      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)

      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)

      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)

      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)

      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:188)

      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)

      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)

      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:202)

      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:150)

      at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)

      at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)

      at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)

      at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)

      at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)

      at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)

      at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)

      at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)

      at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)

      at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)

      at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355)

      at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      at java.lang.Thread.run(Thread.java:724)

        • 1. Re: Arquillian test fails :java.lang.NoSuchMethodError: org.jboss.arquillian.test.spi.TestResult.setEnd(J)V
          sumncc

          Hi Ciara, Have you got any solution yet apart from here?

          I am also getting this time to time . not sure why!! It looks like a java reflection related bug in Arquillian.

          When I rename the Test file or method names, it sometime works.

           

          Or could anyone else?

           

          Thanks

          • 2. Re: Arquillian test fails :java.lang.NoSuchMethodError: org.jboss.arquillian.test.spi.TestResult.setEnd(J)V
            devcoder98

            Hi,

            I ran into a similar problem and got rid of it by eliminating the <version> tag in the following declaration

             

              <dependency>

              <groupId>org.jboss.arquillian.junit</groupId>

              <artifactId>arquillian-junit-container</artifactId>

              <!--

              <version>1.0.0.CR4</version>

              -->

              <scope>test</scope>

              </dependency>

             

            By doing this, It upgraded to a more recent verion (1.1.5.Final) and my tests ran ok.

             

            My pom.xml looks like

             

            <?xml version="1.0" encoding="UTF-8"?>

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

              <artifactId>cumin</artifactId>

              <groupId>com.ingenium.cumin</groupId>

              <version>1.0-SNAPSHOT</version>

              </parent>

             

             

              <artifactId>cumin-ejb</artifactId>

              <packaging>ejb</packaging>

             

             

              <name>cumin EJB module</name>

             

             

              <dependencies>

             

             

              <!-- Jackson 2.x Core -->

              <dependency>

              <groupId>com.fasterxml.jackson.core</groupId>

              <artifactId>jackson-core</artifactId>

              <version>2.2.3</version>

              </dependency>

              <!-- Jackson 2.x Annotations -->

              <dependency>

              <groupId>com.fasterxml.jackson.core</groupId>

              <artifactId>jackson-annotations</artifactId>

              <version>2.2.3</version>

              </dependency>

              <!-- Jackson 2.x Databind -->

              <dependency>

              <groupId>com.fasterxml.jackson.core</groupId>

              <artifactId>jackson-databind</artifactId>

              <version>2.2.3</version>

              </dependency>

             

             

              <!-- add dependency on jdbc driver for mysql -->

              <dependency>

              <groupId>mysql</groupId>

              <artifactId>mysql-connector-java</artifactId>

              <version>5.1.31</version>

              </dependency>

             

             

              <!-- Declare the APIs we depend on and need for compilation. All of them

              are provided by JBoss AS 7 -->

             

             

              <!-- Import the EJB API, we use provided scope as the API is included in

              JBoss AS 7 -->

              <dependency>

              <groupId>org.jboss.spec.javax.ejb</groupId>

              <artifactId>jboss-ejb-api_3.1_spec</artifactId>

              <scope>provided</scope>

              </dependency>

             

             

              <!-- Import the CDI API, we use provided scope as the API is included in

              JBoss AS 7 -->

              <dependency>

              <groupId>javax.enterprise</groupId>

              <artifactId>cdi-api</artifactId>

              <scope>provided</scope>

              </dependency>

             

             

              <!-- Import the JPA API, we use provided scope as the API is included in

              JBoss AS 7 -->

              <dependency>

              <groupId>org.hibernate.javax.persistence</groupId>

              <artifactId>hibernate-jpa-2.0-api</artifactId>

              <scope>provided</scope>

              </dependency>

             

             

              <!-- JSR-303 (Bean Validation) Implementation -->

              <!-- Provides portable constraints such as @Email -->

              <!-- Hibernate Validator is shipped in JBoss AS 7 -->

              <dependency>

              <groupId>org.hibernate</groupId>

              <artifactId>hibernate-validator</artifactId>

              <scope>provided</scope>

              </dependency>

             

             

             

             

              <!-- Test scope dependencies -->

              <dependency>

              <groupId>junit</groupId>

              <artifactId>junit</artifactId>

              </dependency>

             

             

              <!-- Optional, but highly recommended -->

              <!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA)

              JPA from JUnit/TestNG -->

              <dependency>

              <groupId>org.jboss.arquillian.junit</groupId>

              <artifactId>arquillian-junit-container</artifactId>

              <!--

              <version>1.0.0.CR4</version>

              -->

             

              <scope>test</scope>

              </dependency>

             

             

              <dependency>

              <groupId>org.jboss.spec</groupId>

              <artifactId>jboss-javaee-6.0</artifactId>

              <version>1.0.0.Final</version>

              <type>pom</type>

              <scope>provided</scope>

              </dependency>

             

             

              

              <dependency>

              <groupId>org.jboss.arquillian.protocol</groupId>

              <artifactId>arquillian-protocol-servlet</artifactId>

              <version>1.0.0.CR4</version>

              <scope>test</scope>

              </dependency>

             

             

             

             

                     <dependency>

                        <groupId>org.jboss.as</groupId>

                        <artifactId>jboss-as-arquillian-container-managed</artifactId>

                        <version>7.1.1.Final</version>

                        <scope>test</scope>

                     </dependency>

             

             

              <dependency>

              <groupId>org.jboss.weld</groupId>

              <artifactId>weld-core</artifactId>

              <version>1.1.5.Final</version>

              <scope>test</scope>

              </dependency>

             

             

              <dependency>

              <groupId>org.slf4j</groupId>

              <artifactId>slf4j-simple</artifactId>

              <version>1.6.4</version>

              <scope>test</scope>

              </dependency>

             

             

              <dependency> 

                        <groupId>org.jboss.shrinkwrap.resolver</groupId> 

                        <artifactId>shrinkwrap-resolver-depchain</artifactId> 

                        <type>pom</type> 

                        <scope>test</scope> 

                        <version>2.0.0-alpha-1</version> 

              </dependency> 

              <!-- end snip x3-->

             

             

              </dependencies>

             

             

              <dependencyManagement>

              <dependencies>

             

             

                     <dependency>

                        <groupId>org.jboss.shrinkwrap.resolver</groupId>

                        <artifactId>shrinkwrap-resolver-bom</artifactId>

                        <version>2.0.0-alpha-1</version>

              <!--             

              <scope>test</scope>

              -->

                        <scope>import</scope>

                        <type>pom</type>

                    </dependency>

             

             

             

             

              <dependency>

              <groupId>org.jboss.arquillian</groupId>

              <artifactId>arquillian-bom</artifactId>

              <version>1.1.5.Final</version>

              <scope>import</scope>

              <type>pom</type>

              </dependency>

              </dependencies>

              </dependencyManagement>

             

             

              <build>

              <plugins>

              <plugin>

              <artifactId>maven-ejb-plugin</artifactId>

              <version>2.3</version>

              <configuration>

              <!-- Tell Maven we are using EJB 3.1 -->

              <ejbVersion>3.1</ejbVersion>

              </configuration>

              </plugin>

              </plugins>

              </build>

             

             

              <profiles>

              <profile>

              <!-- The default profile skips all tests, though you can tune it to run

              just unit tests based on a custom pattern -->

              <!-- Seperate profiles are provided for running all tests, including Arquillian

              tests that execute in the specified container -->

              <id>default</id>

              <activation>

              <activeByDefault>true</activeByDefault>

              </activation>

              <build>

              <plugins>

              <plugin>

              <artifactId>maven-surefire-plugin</artifactId>

              <version>2.4.3</version>

              <configuration>

              <skip>true</skip>

              </configuration>

              </plugin>

              </plugins>

              </build>

              </profile>

             

             

              <profile>

              <!-- We add the JBoss repository as we need the JBoss AS connectors for

              Arquillian -->

              <repositories>

              <!-- The JBoss Community public repository is a composite repository

              of several major repositories -->

              <!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->

              <repository>

              <id>jboss-public-repository</id>

              <name>JBoss Repository</name>

              <url>http://repository.jboss.org/nexus/content/groups/public</url>

              <!-- These optional flags are designed to speed up your builds by reducing

              remote server calls -->

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </repository>

              </repositories>

             

             

              <pluginRepositories>

              <pluginRepository>

              <id>jboss-public-repository</id>

              <name>JBoss Repository</name>

              <url>http://repository.jboss.org/nexus/content/groups/public</url>

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </pluginRepository>

              </pluginRepositories>

             

             

              <!-- An optional Arquillian testing profile that executes tests in your

              JBoss AS instance -->

              <!-- This profile will start a new JBoss AS instance, and execute the

              test, shutting it down when done -->

              <!-- Run with: mvn clean test -Parq-jbossas-managed -->

              <id>arq-jbossas-managed</id>

              <dependencies>

              <dependency>

              <groupId>org.jboss.as</groupId>

              <artifactId>jboss-as-arquillian-container-managed</artifactId>

              <version>7.1.0.Beta1b</version>

              <scope>test</scope>

              </dependency>

              </dependencies>

              </profile>

             

             

              <profile>

              <!-- We add the JBoss repository as we need the JBoss AS connectors for

              Arquillian -->

              <repositories>

              <!-- The JBoss Community public repository is a composite repository

              of several major repositories -->

              <!-- see http://community.jboss.org/wiki/MavenGettingStarted-Users -->

              <repository>

              <id>jboss-public-repository</id>

              <name>JBoss Repository</name>

              <url>http://repository.jboss.org/nexus/content/groups/public</url>

              <!-- These optional flags are designed to speed up your builds by reducing

              remote server calls -->

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </repository>

              </repositories>

             

             

              <pluginRepositories>

              <pluginRepository>

              <id>jboss-public-repository</id>

              <name>JBoss Repository</name>

              <url>http://repository.jboss.org/nexus/content/groups/public</url>

              <releases>

              <enabled>true</enabled>

              </releases>

              <snapshots>

              <enabled>false</enabled>

              </snapshots>

              </pluginRepository>

              </pluginRepositories>

             

             

              <!-- An optional Arquillian testing profile that executes tests in a remote

              JBoss AS instance -->

              <!-- Run with: mvn clean test -Parq-jbossas-remote -->

              <id>arq-jbossas-remote</id>

              <dependencies>

              <dependency>

              <groupId>org.jboss.as</groupId>

              <artifactId>jboss-as-arquillian-container-remote</artifactId>

              <version>7.1.0.Beta1b</version>

              <scope>test</scope>

              </dependency>

              </dependencies>

              </profile>

             

             

              </profiles>

             

             

            </project>