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 Release Plugin
  • MRELEASE-421

overwriting property in version tag, rather than updating property

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.0-beta-8
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

I have a multimodule project that has the following dependency setup in one of the poms

<nexus-lvo-plugin.version>1.0.2-SNAPSHOT</nexus-lvo-plugin.version>

<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-lvo-plugin</artifactId>
<version>${nexus-lvo-plugin.version}</version>
</dependency>

this nexus-lvo-plugin is in the same reactor build as the module above.

In 2.0-beta-8, rather than simply updating the property w/ the release version, the <version> tag in the dependency is updated

leaving

<dependency>
<groupId>org.sonatype.nexus.plugins</groupId>
<artifactId>nexus-lvo-plugin</artifactId>
<version>1.0.2</version>
</dependency>

which causes me to have to update the pom after release is done. this didn't happen in previous release plugin versions

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MRELEASE-325 The release plugin does not keep the variable substitution in the connection/developer url after a release prepare/perform.

  • 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
Brett Porter added a comment - 23/Sep/10 5:10 AM

seems to work in 2.1-SNAPSHOT and 2.0.

Show
Brett Porter added a comment - 23/Sep/10 5:10 AM seems to work in 2.1-SNAPSHOT and 2.0.
Hide
Permalink
Thomas Demande added a comment - 26/Jan/11 8:19 AM

Tested with 2.1, and, as stated in the description, the release plugin updates the dependency version tag, not the property.

That is especially bad because in this case I do use the value of the property in resources files (here, mvn url for OSGi features descriptors, so having SNAPSHOT is bad ).

Tested in release plugin 2.1, with Maven 2.2.1 and 3.0.

Can you tell me if this should really work or reopen this issue ?

Show
Thomas Demande added a comment - 26/Jan/11 8:19 AM Tested with 2.1, and, as stated in the description, the release plugin updates the dependency version tag, not the property. That is especially bad because in this case I do use the value of the property in resources files (here, mvn url for OSGi features descriptors, so having SNAPSHOT is bad ). Tested in release plugin 2.1, with Maven 2.2.1 and 3.0. Can you tell me if this should really work or reopen this issue ?

People

  • Assignee:
    Brett Porter
    Reporter:
    Max Powers
Vote (0)
Watch (1)

Dates

  • Created:
    05/Mar/09 11:14 AM
    Updated:
    26/Jan/11 8:19 AM
    Resolved:
    23/Sep/10 5:10 AM
  • 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.