Bug 970610 (-Djboss.dist)
Summary: | jboss.dist property is not correctly propagated using -Djboss.dist | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Radim Hatlapatka <rhatlapa> | |
Component: | Testsuite | Assignee: | Ondřej Žižka <ozizka> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Jelinek <pjelinek> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.1.0, 6.2.0, 6.1.1 | CC: | akostadi, jcacek, jcasey, jmartisk, kkhan, myarboro, ochaloup, olukas, ozizka, pjelinek, rsvoboda, smumford | |
Target Milestone: | DR0 | |||
Target Release: | EAP 6.3.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1078701 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-28 15:40:52 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1078701 |
Description
Radim Hatlapatka
2013-06-04 13:00:58 UTC
I am able to run the testsuite using simple workaround => by changing <jboss.dist>${jbossas.project.dir}/build/target/jboss-as-${jboss.as.release.version}</jboss.dist> to <jboss.dist>${jboss.dist}</jboss.dist> in testsuite/integration/pom.xml Looks like this is failing because of: https://jira.codehaus.org/browse/MANTRUN-178 One workaround you could try is to define the jboss.dist property as an expression referencing another property, say jboss.dist.dir. This can have a value in the pom.xml properties section. You would then use -Djboss.dist.dir=/path/to/jboss and allow maven pom interpolation to supply the CLI value for ${jboss.dist} and have that picked up properly by the antrun plugin. It looks like the property resolver in the antrun plugin isn't using the MavenSession's getUserProperties() correctly. *** Bug 982019 has been marked as a duplicate of this bug. *** BZ 982019 contains attachments for osgi and manual mode failures There's a high chance that the workaround suggested by John in comment #2 will work. I use it for other properties. I could get to it soon. The workaround for this issue may potentially harm other scenarios, and needs to be tested really well. Hence it should really not go to EAP without getting to upstream first. For the reasons above, I'm giving it an DEV NACK. Meaning that it won't be in EAP 6.2 yet (I can't set the eap_620 flag). Ondra, why should the workaround suggested by John be potentially harmful in any way to other scenarios? Could you provide example of such scenario? I prepared a fix for the OSGi part of this issue, as it is described in #982019 (that BZ was closed as duplicate, so resolving it as part of this issue). PR: https://github.com/jbossas/jboss-eap/pull/739 Fix for manualmode and patching modules: https://github.com/jbossas/jboss-eap/pull/736 Fixed in EAP 6.3.0 DR0. There is no more issue with mvn install EAP src, erasure of built EAP and then running integration tests with -Djboss.dist specified. |