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

release:prepare mojo corrupts ${} variable reference in the <scm> tag

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0-beta-7
  • Fix Version/s: None
  • Component/s: prepare
  • Labels:
    • properties
  • Environment:
    windows-xp
    maven 2.1.0
    cvs

Description

We have a parent pom which is used for inheritance. We would like the <scm> tag to be inherited by child projects (not modules) and have entered the following.

<scm>
    <connection>scm:cvs:ext:myhost:/repository:Projects/${project.artifactId}</connection>
</scm>

The problems is that the ${project.artifactId} variable is expanded during the release:prepare operation. It appears to happen in the writing of the next snapshot release version of the pom. i.e. The released pom (1.0) still contains the variable reference but new snapshot version (1.1-SNAPSHOT) has the expanded value. e.g...

<scm>
    <connection>scm:cvs:ext:myhost:/repository:Projects/myArtifactId</connection>
</scm>

This forces us to place the scm tag in all child poms which we'd prefer not to do.

cheers

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRELEASE-128 SCM properties being replaced during release:perform

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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Brett Porter
    Reporter:
    Andrew Woodford
Vote (0)
Watch (1)

Dates

  • Created:
    21/Sep/09 6:57 AM
    Updated:
    25/Jun/11 3:33 AM
    Resolved:
    23/Sep/10 5:02 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.