jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Resources Plugin
  • MRESOURCES-101

command-line properties not regarded sometimes

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    test_proj.zip
    22/Feb/08 7:57 AM
    1 kB
    A
    1. Text File
      test_proj/src/test/resources/test.txt 0.0 kB
    2. XML File
      test_proj/pom.xml 0.9 kB
    Download Zip
    Show
    Zip Archive
    test_proj.zip
    22/Feb/08 7:57 AM
    1 kB
    A

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRESOURCES-39 Filtering fails for command line properties

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-1992 CLI -D should override properties in settings.xml

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
A added a comment - 22/Feb/08 7:58 AM - edited

There could be some relationship with MNG-1992 but I see the same behavior with 2.1-snapshot as well.

Show
A added a comment - 22/Feb/08 7:58 AM - edited There could be some relationship with MNG-1992 but I see the same behavior with 2.1-snapshot as well.
Hide
Permalink
Paul Gier added a comment - 22/Feb/08 2:53 PM

I believe this issue is the same as MRESOURCES-39.

Show
Paul Gier added a comment - 22/Feb/08 2:53 PM I believe this issue is the same as MRESOURCES-39.

People

  • Assignee:
    Unassigned
    Reporter:
    A
Vote (0)
Watch (2)

Dates

  • Created:
    22/Feb/08 7:57 AM
    Updated:
    07/Sep/09 5:32 AM
    Resolved:
    12/Jun/08 7:19 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.