Jens Schauder created ARQ-1640:
----------------------------------
Summary: Dependencies can't be loaded with gradle 1.10 due to unresolved
properties in pom
Key: ARQ-1640
URL:
https://issues.jboss.org/browse/ARQ-1640
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Weld Containers
Affects Versions: 1.0.0.CR7
Reporter: Jens 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_...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira