Maven 2.x Ant Tasks

Support profiles in pom type

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0.10
  • Component/s: pom task
  • Labels:
    None
  • Number of attachments :
    1

Description

Need to be able to pass in a list of profiles to activate in pom type - there's currently a TODO in Pom.java for this.

Issue Links

Activity

Hide
Pete Muir added a comment -

Here is a patch. Use it like:

<pom file="pom.xml">
<activeProfile id="foo" />
<activeProfile id="bar" if="some.property.is.set" />
</pom>

Show
Pete Muir added a comment - Here is a patch. Use it like: <pom file="pom.xml"> <activeProfile id="foo" /> <activeProfile id="bar" if="some.property.is.set" /> </pom>
Hide
Wendy Smoak added a comment -

How does this relate to MANTTASKS-56, which is already closed?

Show
Wendy Smoak added a comment - How does this relate to MANTTASKS-56, which is already closed?
Hide
Paul Gier added a comment -

Fixed in r769992 and 769994

Show
Paul Gier added a comment - Fixed in r769992 and 769994
Hide
Paul Gier added a comment -

Just wanted to add that the configuration is a little different from what Pete suggested. I added some information about it to the site docs and it will look something like this.

<pom file="pom.xml">
    <profile id="foo" />
    <profile id="bar" active="false" />
    <profile id="bar2" active="${bar2.on}" />
</pom>
Show
Paul Gier added a comment - Just wanted to add that the configuration is a little different from what Pete suggested. I added some information about it to the site docs and it will look something like this.
<pom file="pom.xml">
    <profile id="foo" />
    <profile id="bar" active="false" />
    <profile id="bar2" active="${bar2.on}" />
</pom>

People

Vote (7)
Watch (8)

Dates

  • Created:
    Updated:
    Resolved: