maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Farinacci <jie...@gmail.com>
Subject custom extension problem, error mode enablement
Date Wed, 23 Jan 2013 14:31:47 GMT
Greetings

I'm seeing some odd behavior with a custom Apache Maven extension
intended to force on error message mode (-e). The extension can be
found here https://gist.github.com/63e65486e60124a3e8f7

The extension loads fine, and I see the log message found in the
extension, but it doesn't actually enable error message mode! I verify
error message mode is not enabled via the extension by causing an
error in a project, e.g. dependency on junit:junit:666, and observing
the difference with and without -e passed to mvn.

Would someone please tell me the magic incantation to programmatically
get error message mode enabled? It appears that setting
MavenExecutionRequest.setShowErrors(true) should do the trick, but
perhaps this is read once and never again, which occurs before the
extension gets loaded?

Any help is appreciated,
-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message