Maven 1

some genuine errors result in "fatal" errors

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-rc1
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    0

Description

for example: extend a POM that doesn't exist.

Need to gracefully catch such exceptions and handle differently.

Activity

Hide
Brett Porter added a comment -

need to have a runtime exception that is fatal that does that handling and the rest are caught.

do similarly in m2.

Show
Brett Porter added a comment - need to have a runtime exception that is fatal that does that handling and the rest are caught. do similarly in m2.
Hide
Arnaud Heritier added a comment -

To be checked before the RC1

Show
Arnaud Heritier added a comment - To be checked before the RC1
Hide
Arnaud Heritier added a comment -

I improved a little bit how exceptions are catched and I verified that exceptions are correctly chained.
Now we have graceful messages like :

Arnaud@octo-ahe /cygdrive/e/Temp/testMaven
$ maven toto
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT


BUILD FAILED

Errors stack :
>> Error reading XML or initializing
>> Parent POM not found: E:\Temp\project.xml

Total time   : 0 seconds
Finished at  : Monday, October 23, 2006 12:58:12 AM CEST
Show
Arnaud Heritier added a comment - I improved a little bit how exceptions are catched and I verified that exceptions are correctly chained. Now we have graceful messages like :
Arnaud@octo-ahe /cygdrive/e/Temp/testMaven
$ maven toto
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT


BUILD FAILED

Errors stack :
>> Error reading XML or initializing
>> Parent POM not found: E:\Temp\project.xml

Total time   : 0 seconds
Finished at  : Monday, October 23, 2006 12:58:12 AM CEST
Hide
Lukas Theussl added a comment -

There is a regression in the current development version (1.1-RC1-SNAPSHOT), a non-existing parent, (or any other problem in the pom, eg invalid xml), leads to a failed build, but without any explanation. This is only given when running with the -e option (together with the full stack trace).

Show
Lukas Theussl added a comment - There is a regression in the current development version (1.1-RC1-SNAPSHOT), a non-existing parent, (or any other problem in the pom, eg invalid xml), leads to a failed build, but without any explanation. This is only given when running with the -e option (together with the full stack trace).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: