Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] How to catch maven compilation errors in m2e plugin?

On 07/22/2011 02:06 PM, Vlad Tatavu wrote:
> Do u pass in any exception instance when u call buildContext.addMessage() ?

No. There is no exception to throw. The JavaScript compiler which I use
internally (Closure Compiler) only returns a list of error messages. I
call addMessage for each of these error messages (With null for the
cause parameter) and if the list has at least one entry I throw a single
MojoFailureException to tell Maven that the build failed.

-- 
Bye, K <http://www.ailis.de/~k/>
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k@xxxxxxxx to get public key)


Back to the top