There are five choices listed in the maven documentation on testing maven pl开发者_运维技巧ugins:
- maven-verifier
- maven-invoker-plugin
- shitty-maven-plugin
- maven-it-plugin
- maven-plugin-management-plugin
I've tried a few of these and had a number of problems:
- maven-verifier appears to have only a limited set of verifications -- I need to be able to make arbitrary assertions
- shitty-maven-plugin has a bug that prevents it working with maven 3
- nethier maven-plugin-management-plugin nor maven-it-plugin are stable and don't seem to be under active development
Is anyone able to recommend any of these plugins? Can you provide some example configuration?
The best thing i can recommend is the maven-invoker-plugin, cause it's can handle many situations and produces a real maven environment with all things which you really need to do integration test in relationship with Maven Plugins.
精彩评论