6 Replies Latest reply on Aug 5, 2011 7:24 AM by Aliaksei Lahachou

    Resolving artifacts from Maven reactor

    Aliaksei Lahachou Newbie

      Hello everyone!

       

      Is it possible to resolve artifacts from reactor, which are not installed to the local maven repository? I have the following project structure:

       

      parent

      + utils

      + integration-tests

       

      I want to include utils in deployed archive, but it does not work:

       

      return ShrinkWrap.create(WebArchive.class)

              .addAsLibraries(DependencyResolvers

                      .use(MavenDependencyResolver.class)

                      .artifact("com.example:utils:1.0.0-SNAPSHOT")

                      .resolveAsFiles());

       

      Is it not supported, or am I doing something wrong? Is there a workaround? I'm using Arquillian 1.0.0.CR1 and ShrinkWrap 1.0.0-beta-2.

       

      As far as I understand, the artifact is on the class path when test is executed. Is it possible to include the jar file on the class path as web archive library?

       

      Greets,

      Aliaksei