-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

typically if maven fails with something like "required artifact is missing"
you can have a look at the module where the error occurred and scan
the dependencies.
As additional support maven typically prompts an error report including
something like this:

~  Path to dependency:
~        1) net.sf.mmm:mmm-uit-impl-swt:jar:0.9.0-SNAPSHOT
~        2) org.eclipse.swt:swt:pom:3.3.0
~        3) org.eclipse.swt:swt-linux-gtk:jar:3.3.0

Excellent.

However there are still many situations where somewhere deep inside maven
an artifact is required that is missing but the user does NOT get a tiny clue
what is going on.
In most cases you do not know which plugin requested the artifact and caused the
problem or anything like that.
Even worse sometimes the required artifact is obviously located in the local
repository but for some reason maven says it is missing.
I still remember several times where a buggy plugin was released and my maven
got an update and further builds all ended with something like
"maven-resources-plugin not found".

I really love maven! It is great, it is cool, it rescues the world.
But sorry to say this: the logging and error handling in maven is (partially)
shitty.
You know these kind of
"This project has been banned from further executions due to previous failures"
but however there are no previous failures even if you start with "-X".
In these moments a user comes to the point that maven is just a magic wizzard
and if he is in a bad mood you can not do anything against it.

Or what about eclipse:eclipse and the reactor summary that says
all is successfully but if you really read the entire log you will see
that many errors occurred?
IMHO there is a design problem in the way a MOJO can report an error.
If it throws a MojoExecutionException or -Failure the complete build stops
(except for -fn and maybe -fae).
If it does NOT, the maven-core can not know the problem and the reactor
summary says SUCCESS.

So please do not get me wrong. I want to say thanks for maven which is an
excellent product but please consider improving exception handling, error
tracking and logging in 2.1 and above as well as all mojo developers (including
myself) should do.

Best wishes
~  Jörg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmnZTmPuec2Dcv/8RAg90AJ9GS+5og9hs1Iw371GfFNH/0dNjrQCgkuGw
sQRXaoKucjsMvDjXYcHtpxM=
=DCZ/
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to