maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kristoffer <>
Subject Re: Message from my annotation processor don't appear in console
Date Thu, 14 Feb 2008 14:34:18 GMT


I do not have an answer to your question, sorry. But I wonder if you can
help me with a small problem i have?

Im trying to invoke the annotation processor from Maven, and i cannot get
Maven to invoke my processors during 'compile'..

It works fine with straight javac...

I have configured maven-compiler-plugin like so:


Is there anything more that i have to do trigger my processor?


Sahoo wrote:
> Hi,
> Recently I was writing an annotation processor [1]  which gets called 
> from javac. JDK 6 javac exposes an API called Messager to be used to 
> report warnings or errors or diagnostic information. I noticed that if I 
> launch javac from command line, my messages appear in the output, but 
> when javac is invcoked by maven-compiler-plugin, my messages don't 
> appear. While debugging I found that maven passes StringWriter to javac 
> to write the messages to and javac is also writing to that object, so I 
> suspect maven is not subsequently printing the information available in 
> the StringWriter object. More information is available at [2].
> Thanks,
> Sahoo
> [1] 
> [2]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message