2 Replies Latest reply on Mar 7, 2012 9:58 PM by Ronaldo Florence

    testing the examples

    mid491 mid491 Newbie

      Hi,

      i am very new to Arquillian and i am trying the examples founded at https://github.com/arquillian/arquillian-examples but whithout success...

       

      I guess it's a dependency problem but can't find it :

       

      C:\tmp\arquillian-arquillian-examples-d7b0ab4\jpa2>mvn test

      [INFO] Scanning for projects...

      [INFO]

      [INFO] ------------------------------------------------------------------------

      [INFO] Building Arquillian Examples: JPA 2 1.0.0

      [INFO] ------------------------------------------------------------------------

      Downloading: https://maven.nuxeo.org/nexus/content/groups/public/org/jboss/arquillian/container/arqu

      illian-glassfish-embedded-3/1.0.0.Alpha5/arquillian-glassfish-embedded-3-1.0.0.Alpha5.pom

      Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/arquillian/con

      tainer/arquillian-glassfish-embedded-3/1.0.0.Alpha5/arquillian-glassfish-embedded-3-1.0.0.Alpha5.pom

       

       

      [WARNING] The POM for org.jboss.arquillian.container:arquillian-glassfish-embedded-3:jar:1.0.0.Alpha

      5 is missing, no dependency information available

      Downloading: https://maven.nuxeo.org/nexus/content/groups/public/org/jboss/arquillian/container/arqu

      illian-glassfish-embedded-3/1.0.0.Alpha5/arquillian-glassfish-embedded-3-1.0.0.Alpha5.jar

      Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/arquillian/con

      tainer/arquillian-glassfish-embedded-3/1.0.0.Alpha5/arquillian-glassfish-embedded-3-1.0.0.Alpha5.jar

       

       

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 4.297s

      [INFO] Finished at: Fri Feb 03 15:54:51 CET 2012

      [INFO] Final Memory: 5M/121M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project jpa2: Could not resolve dependencies for project org.jboss

      .arquillian.examples:jpa2:jar:1.0.0: Could not find artifact org.jboss.arquillian.container:arquilli

      an-glassfish-embedded-3:jar:1.0.0.Alpha5 in maven-nuxeo (https://maven.nuxeo.org/nexus/content/group

      s/public/) -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following arti

      cles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

      C:\tmp\arquillian-arquillian-examples-d7b0ab4\jpa2>

       

       

       

      I've added this profile to my settings.xml :

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

            <repositories>

            <repository>

                   

                  <id>maven-nuxeo</id>

                  <name>Maven Nuxeo Repository</name>

                  <url>https://maven.nuxeo.org/nexus/content/groups/public/</url>

                  <layout>default</layout>

                  <releases>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                  </releases>

                  <snapshots>

                      <enabled>true</enabled>

                      <updatePolicy>never</updatePolicy>

                  </snapshots>

              </repository>

             

             

              <repository>

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

                <name>JBoss Public Maven Repository Group</name>

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

                <layout>default</layout>

                <releases>

                  <enabled>true</enabled>

                  <updatePolicy>never</updatePolicy>

                </releases>

                <snapshots>

                  <enabled>true</enabled>

                  <updatePolicy>never</updatePolicy>

                </snapshots>

              </repository>

            </repositories>

            <pluginRepositories>

              <pluginRepository>

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

                <name>JBoss Public Maven Repository Group</name>

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

                <layout>default</layout>

                <releases>

                  <enabled>true</enabled>

                  <updatePolicy>never</updatePolicy>

                </releases>

                <snapshots>

                  <enabled>true</enabled>

                  <updatePolicy>never</updatePolicy>

                </snapshots>

              </pluginRepository>

            </pluginRepositories>

          </profile>

       

       

       

      thanks for help!

        • 1. Re: testing the examples
          Bartosz Majsak Master

          Hi,

           

          I'm not really sure if arquillian-examples repository is still maintained (from the artifact versions in your log looks like it's not). Anyway, please give https://github.com/arquillian/arquillian-showcase a try. This is working and always kept up-to-date.

          • 2. Re: testing the examples
            Ronaldo Florence Newbie

            Hi,

             

            just to point out a problem in the samples, the artifactId in the pom.xml of the ejb31-gfembedded sample is wrong, in the sample it comes:

             

                            <dependency>

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

                                <artifactId>arquillian-glassfish-embedded-3</artifactId>

                                <version>${version.org.jboss.arquillian}</version>

                            </dependency>

             

            Where the right thing is:

             

                            <dependency>

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

                                <artifactId>arquillian-glassfish-embedded-3.1</artifactId>

                                <version>${version.org.jboss.arquillian}</version>

                            </dependency>

             

            Hope it helps in the future.