[
http://jira.codehaus.org/browse/MNG-3546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146949#action_146949
]
tdiesler edited comment on MNG-3546 at 9/4/08 1:29 AM:
-------------------------------------------------------------
Also, a property defined in profiles.xml is not seen in module profile
activation
{code}
<profilesXml xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/profiles-1.0.0.xsd">
<profiles>
<!-- This profile can also be defined in ~/.m2/settings.xml -->
<profile>
<id>jboss-home-profile</id>
<activation>
<property>
<name>user.name</name>
</property>
</activation>
<properties>
<jboss422.home>/home/tdiesler/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA</jboss422.home>
<jboss.bind.address>foo</jboss.bind.address>
</properties>
</profile>
</profiles>
</profilesXml>
{code}
{code}
<!-- Profiles -->
<profiles>
<!--
Name: no-jboss-bind-address
Descr: Set the default jboss.bind.address
command line cannot overwrite pom properties
http://jira.codehaus.org/browse/MNG-3546
-->
<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>
</profiles>
{code}
The effective pom should show foo for all modules, but does not
{code}
[EMAIL PROTECTED] trunk]$ mvn help:effective-pom | grep jboss.bind.address
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<jboss.bind.address>foo</jboss.bind.address>
<id>no-jboss-bind-address</id>
<name>!jboss.bind.address</name>
<jboss.bind.address>localhost</jboss.bind.address>
<jboss.bind.address>localhost</jboss.bind.address>
{code}
was (Author: tdiesler):
Also, a property defined in profiles.xml does not override a property
defined in a module profile
> command line cannot overwrite pom properties
> --------------------------------------------
>
> Key: MNG-3546
> URL: http://jira.codehaus.org/browse/MNG-3546
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.9
> Reporter: Thomas Diesler
> Fix For: 2.0.x
>
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira