Maven 1.x Announcement Plugin

[PATCH] Goal check-version doesn't show release number properly in case of error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

If the check-version fail because the current version is not set at xdocs/changes.xml, maven shows the following message:

The release '' could not be found in change log

Instead of:

The release 'x.y.z' could not be found in change log

(where x.y.z is the project's current version.

The fix is simple: it's just a matter of changing line 70 of plugin.jelly, from:

<ant:fail>The release '${maven.announcement.version}' could not be found in change log</ant:fail>

to:

<ant:fail>The release '${versionVariable}' could not be found in change log</ant:fail>

Anyway, I'm sending a patch for that...

Felipe

Activity

Hide
Felipe Leme added a comment -

Patch with the fix.

Show
Felipe Leme added a comment - Patch with the fix.
Hide
Vincent Massol added a comment -

Applied. Thanks!

Show
Vincent Massol added a comment - Applied. Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
5m
Original Estimate - 5 minutes
Remaining:
5m
Remaining Estimate - 5 minutes
Logged:
Not Specified
Time Spent - Not Specified