3 Replies Latest reply on Feb 13, 2014 2:18 PM by schauder

    Arquillian poms not parsable by Gradle

    schauder

      I'm trying to get Arquillian to work in my current project. We use Gradle as the build tool.

       

      When adding the embedded weld container as a dependency:

       

        testCompile "org.jboss.arquillian.container:arquillian-weld-ee-embedded-1.1:1.0.0.CR7"

       

      I get the following error in my gradle build

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Could not resolve all dependencies for configuration ':guiTests:testCompile'.

      > Could not resolve org.jboss.arquillian.container:arquillian-weld-ee-embedded-1.1:1.0.0.CR7.

        Required by:

            de.volkswagen.mbx:guiTests:0.1

         > Could not parse POM http://<ourPrivateMavenMirror>/org/jboss/arquillian/container/arquillian-weld-ee-

      embedded-1.1/1.0.0.CR7/arquillian-weld-ee-embedded-1.1-1.0.0.CR7.pom

            > Unable to resolve version for dependency 'org.jboss.weld:weld-core:jar'

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       

      BUILD FAILED

       

      I did some searching and came to the conclussion that it is due to unresolved properties in the pom, e.g.

      <version>${weld-core-1_1.version}</version>

       

      This seems to be discouraged even by Maven and doesn't work in Gradle

      http://forums.gradle.org/gradle/topics/handling_properties_in_maven_pom

      http://forums.gradle.org/gradle/topics/gradle_1_10_breaks_with_pom_files_that_reference_properties_from_the_parent_pom

       

      Is a workaround for this available? Or should I file a bug report?