Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1640

Dependencies can't be loaded with gradle 1.10 due to unresolved properties in pom

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0.CR7
    • Weld Containers
    • None

      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

              Unassigned Unassigned
              schauder Jens Schauder (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: