6 Replies Latest reply on Jul 23, 2013 8:25 PM by Andriy Rokhmanov

    arquillian 1.1.0 final and shrinkwrap

    kelly goedert Apprentice

      Hi,

       

      I am trying to follow this guide http://arquillian.org/guides/functional_testing_using_drone/ but using version 1.1.0 final of arquillian. But I am getting a MavenDependencyResolver cannot be resolved to a type error. Should I change my version to the one used on the guide? Or am I missing a dependency? Here is the relevant parts of the pom:

       

       

      {code}<version.arquillian_core>1.1.0.Final</version.arquillian_core>{code}

       

       

      {code}

      <dependencyManagement>

                          <dependencies>

                                    <dependency>

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

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

                                              <version>3.0.2.Final</version>

                                              <type>pom</type>

                                              <scope>import</scope>

                                    </dependency>

                                    <dependency>

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

                                              <artifactId>arquillian-bom</artifactId>

                                              <version>${version.arquillian_core}</version>

                                              <type>pom</type>

                                              <scope>import</scope>

                                    </dependency>

                                    <dependency>

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

                                              <artifactId>arquillian-drone-bom</artifactId>

                                              <version>1.2.0.Alpha2</version>

                                              <type>pom</type>

                                              <scope>import</scope>

                                    </dependency>

                          </dependencies>

                </dependencyManagement>

       

      {code}

       

       

      {code}

      <dependency>

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

                                    <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

                                    <scope>test</scope>

                          </dependency>

       

      {code}

       

       

      and the class that is not compiling

       

       

      {code}

      public class Deployments {

                private static final String WEBAPP_SRC = "src/main/webapp";

       

       

                public static WebArchive createLoginScreenDeployment() {

                          MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml");

       

       

                          return ShrinkWrap.create(WebArchive.class, "login.war").addClasses(Credentials.class, User.class, LoginController.class)

                                              .addAsLibraries(resolver.artifact("org.jboss.seam.solder:seam-solder").resolveAsFiles()).addAsWebResource(new File(WEBAPP_SRC, "login.xhtml"))

                                              .addAsWebResource(new File(WEBAPP_SRC, "home.xhtml")).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")

                                              .addAsWebInfResource(new StringAsset("<faces-config version=\"2.0\"/>"), "faces-config.xml");

                }

      }

       

      {code}