Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
With a pom like this
<properties>
<jboss.bind.address>localhost</jboss.bind.address>
</properties>
and a command line like this
mvn -Pjboss422 -Djboss.bind.address=foo clean test-compilecxf.xml
I get a filtered resource like this
<jaxws:endpoint id='TestService' address='http://localhost:8080/jaxws-cxf-descriptor'
implementor='org.jboss.test.ws.jaxws.cxf.descriptor.DescriptorEndpointImpl'>
<jaxws:invoker>
<bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
</jaxws:invoker>
</jaxws:endpoint>
Note, the bind address is localhost
Issue Links
- duplicates
-
MRESOURCES-39
Filtering fails for command line properties
-
- relates to
-
MNG-1992
CLI -D should override properties in settings.xml
-
As a workaround, I can define the property in a profile
<!--
Name: no-jboss-bind-address
Descr: Set the default jboss.bind.address
-->
<profile>
<id>no-jboss-bind-address</id>
<activation>
<property>
<name>!jboss.bind.address</name>
</property>
</activation>
<properties>
<jboss.bind.address>localhost</jboss.bind.address>
</properties>
</profile>