Hi Mark,

that sounds / looks promising. Thanks a lot. :)

Unfortunately I don't have time at the moment to test it (next task is already 
waiting), but surely will as soon as I will work on the plug-in again.


-----Urspr√ľngliche Nachricht-----
Von: Mark Raynsford [mailto:org.apache.maven.u...@io7m.com] 
Gesendet: Montag, 16. April 2018 11:21
An: Hohl, Gerrit
Cc: Maven Users List
Betreff: Re: Writing own plugin: The parameter annotation - does it work?

On 2018-04-16T09:26:08 +0200
<g.h...@aurenz.de> wrote:
> Until then proper Maven Plug-in testing is not possible using JUnit - 
> especially not if it is in the IDE (Eclipse+M2E) and not during the Maven 
> build.

I came to the same conclusion (at least with the plain testing
harness). I switched to takari-plugin-testing, which seems to have been
written at least in part as a reaction to the fact that nothing else
worked properly.

I have a very small project that can serve as an example of how to use


Take a look at the com.io7m.minisite.tests module. Primarily the
MinSiteMojoTest class, and the takari plugin execution in the tests
module pom. I can attest that it does work from inside the IDE, but you
may need to run an initial build to run the plugin's testProperties
goal (Eclipse & M2E may be able to do this for you these days, I'm not

Mark Raynsford | http://www.io7m.com

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

Reply via email to