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

during release:prepare, if one of the goals specified in preparationGoals fails, the release:prepare should abort/fail, but it continues along as if nothing bad happened

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

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

Description

In my case, I specified "clean install" as the value of preparationGoals. One of my unit tests failed, which caused the "mvn clean install" to fail, but release:prepare continued on and tagged the release as if nothing had gone wrong during the prep goals...

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-3084 mvn.bat in maven 2.0.7 does not return the correct error code.

  • 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
Emmanuel Venisse added a comment - 08/Oct/07 2:54 PM

If you use maven 2.0.7 under windows, you must patch mvn.bat because it doesn't set the error code

Show
Emmanuel Venisse added a comment - 08/Oct/07 2:54 PM If you use maven 2.0.7 under windows, you must patch mvn.bat because it doesn't set the error code
Hide
Permalink
Emmanuel Venisse added a comment - 08/Oct/07 3:06 PM

sorry, closed by error

Show
Emmanuel Venisse added a comment - 08/Oct/07 3:06 PM sorry, closed by error
Hide
Permalink
Ian Springer added a comment - 08/Oct/07 4:14 PM

I am using Maven 2.0.7 on Windows XP, but my mvn.bat does appear to contain the logic to exit with the same exit code as the Maven java process.

Can you point me to the mvn.bat patch you mentioned?

Thanks,
Ian

Show
Ian Springer added a comment - 08/Oct/07 4:14 PM I am using Maven 2.0.7 on Windows XP, but my mvn.bat does appear to contain the logic to exit with the same exit code as the Maven java process. Can you point me to the mvn.bat patch you mentioned? Thanks, Ian
Hide
Permalink
Emmanuel Venisse added a comment - 09/Oct/07 1:47 AM

http://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn.bat

The related issue: MNG-3084

Show
Emmanuel Venisse added a comment - 09/Oct/07 1:47 AM http://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn.bat The related issue: MNG-3084
Hide
Permalink
Olivier Lamy added a comment - 02/Sep/08 5:12 PM

I think if you have upgraded your maven, you shouldn't have the issue.
If not please reopen the issue.

Show
Olivier Lamy added a comment - 02/Sep/08 5:12 PM I think if you have upgraded your maven, you shouldn't have the issue. If not please reopen the issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Ian Springer
Vote (0)
Watch (0)

Dates

  • Created:
    08/Oct/07 2:41 PM
    Updated:
    02/Sep/08 5:12 PM
    Resolved:
    02/Sep/08 5:12 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.