You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mikolaj Radwan (JIRA)" <ji...@codehaus.org> on 2008/06/03 13:11:59 UTC

[jira] Issue Comment Edited: (MNG-3546) command line cannot overwrite pom properties

    [ http://jira.codehaus.org/browse/MNG-3546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137197#action_137197 ] 

mikosz edited comment on MNG-3546 at 6/3/08 6:11 AM:
-------------------------------------------------------------

> Why is it not ok for system properties to take preference over pom ones? 

They definitely should, they always did (at least as long as I've been using maven).
This is a horrible bug. If someone has a patch for it I'd be really grateful for posting it.

Moreover, I'd change the priority of this issue to 'blocker' from 'major' as it changes the logic of builds a lot.

      was (Author: mikosz):
    > Why is it not ok for system properties to take preference over pom ones? 

They definitely should, they always did (at least as long as I've been using maven).
This is a horrible bug. If someone has a patch for it I'd be really grateful for posting it.

  
> 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
>
> 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