You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "A (JIRA)" <ji...@codehaus.org> on 2008/02/22 14:58:29 UTC
[jira] Created: (MNG-3417) command-line properties not regarded
sometimes
command-line properties not regarded sometimes
----------------------------------------------
Key: MNG-3417
URL: http://jira.codehaus.org/browse/MNG-3417
Project: Maven 2
Issue Type: Bug
Components: Maven Filtering
Affects Versions: 2.0.8
Reporter: A
Attachments: test_proj.zip
I'm attaching a sample project to show properties specified on the command-line (CLI) not being regarded when filtering true. These are being regarded for other purposes though.
Reproduce:
$ mvn test
$ cat target/test-classes/test.txt
Contents: default
$ mvn -P test.profile test
$ cat target/test-classes/test.txt
Contents: profile
$ mvn -Dtest.property='overridden' clean verify
Contents: default
$ mvn -P test.profile -Dtest.property='overridden' clean verify
Contents: profile
As you see last two results should have been "Contents: overridden".
The behavior is not completely broken though because if you try to set "test.include.pattern" then it works fine. Thus I set as component "filtering". This doesn't mean I've any idea where the issue lies. Test proj is a modified version of this on http://www.nabble.com/How-to-override-POM-properties-from-CLI-td15344487s177.html#a15605671
--
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
[jira] Closed: (MNG-3417) command-line properties not regarded
sometimes
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-3417.
-----------------------------
Resolution: Duplicate
> command-line properties not regarded sometimes
> ----------------------------------------------
>
> Key: MNG-3417
> URL: http://jira.codehaus.org/browse/MNG-3417
> Project: Maven 2
> Issue Type: Bug
> Components: Maven Resources Filtering
> Affects Versions: 2.0.8
> Reporter: A
> Attachments: test_proj.zip
>
>
> I'm attaching a sample project to show properties specified on the command-line (CLI) not being regarded when filtering true. These are being regarded for other purposes though.
> Reproduce:
> $ mvn test
> $ cat target/test-classes/test.txt
> Contents: default
> $ mvn -P test.profile test
> $ cat target/test-classes/test.txt
> Contents: profile
> $ mvn -Dtest.property='overridden' clean verify
> Contents: default
> $ mvn -P test.profile -Dtest.property='overridden' clean verify
> Contents: profile
> As you see last two results should have been "Contents: overridden".
> The behavior is not completely broken though because if you try to set "test.include.pattern" then it works fine. Thus I set as component "filtering". This doesn't mean I've any idea where the issue lies. Test proj is a modified version of this on http://www.nabble.com/How-to-override-POM-properties-from-CLI-td15344487s177.html#a15605671
--
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
[jira] Moved: (MRESOURCES-101) command-line properties not regarded
sometimes
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRESOURCES-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann moved MNG-3417 to MRESOURCES-101:
---------------------------------------------------
Affects Version/s: (was: 2.0.8)
Component/s: (was: Maven Resources Filtering)
Key: MRESOURCES-101 (was: MNG-3417)
Project: Maven 2.x Resources Plugin (was: Maven 2)
> command-line properties not regarded sometimes
> ----------------------------------------------
>
> Key: MRESOURCES-101
> URL: http://jira.codehaus.org/browse/MRESOURCES-101
> Project: Maven 2.x Resources Plugin
> Issue Type: Bug
> Reporter: A
> Attachments: test_proj.zip
>
>
> I'm attaching a sample project to show properties specified on the command-line (CLI) not being regarded when filtering true. These are being regarded for other purposes though.
> Reproduce:
> $ mvn test
> $ cat target/test-classes/test.txt
> Contents: default
> $ mvn -P test.profile test
> $ cat target/test-classes/test.txt
> Contents: profile
> $ mvn -Dtest.property='overridden' clean verify
> Contents: default
> $ mvn -P test.profile -Dtest.property='overridden' clean verify
> Contents: profile
> As you see last two results should have been "Contents: overridden".
> The behavior is not completely broken though because if you try to set "test.include.pattern" then it works fine. Thus I set as component "filtering". This doesn't mean I've any idea where the issue lies. Test proj is a modified version of this on http://www.nabble.com/How-to-override-POM-properties-from-CLI-td15344487s177.html#a15605671
--
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
[jira] Issue Comment Edited: (MNG-3417) command-line properties not
regarded sometimes
Posted by "A (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124672 ]
avalon edited comment on MNG-3417 at 2/22/08 7:58 AM:
-------------------------------------------------
There could be some relationship with MNG-1992 but I see the same behavior with 2.1-snapshot as well.
was (Author: avalon):
There could be some relationship with MNG-1992
> command-line properties not regarded sometimes
> ----------------------------------------------
>
> Key: MNG-3417
> URL: http://jira.codehaus.org/browse/MNG-3417
> Project: Maven 2
> Issue Type: Bug
> Components: Maven Filtering
> Affects Versions: 2.0.8
> Reporter: A
> Attachments: test_proj.zip
>
>
> I'm attaching a sample project to show properties specified on the command-line (CLI) not being regarded when filtering true. These are being regarded for other purposes though.
> Reproduce:
> $ mvn test
> $ cat target/test-classes/test.txt
> Contents: default
> $ mvn -P test.profile test
> $ cat target/test-classes/test.txt
> Contents: profile
> $ mvn -Dtest.property='overridden' clean verify
> Contents: default
> $ mvn -P test.profile -Dtest.property='overridden' clean verify
> Contents: profile
> As you see last two results should have been "Contents: overridden".
> The behavior is not completely broken though because if you try to set "test.include.pattern" then it works fine. Thus I set as component "filtering". This doesn't mean I've any idea where the issue lies. Test proj is a modified version of this on http://www.nabble.com/How-to-override-POM-properties-from-CLI-td15344487s177.html#a15605671
--
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