0

I've created a mojo using maven 3.2.2 that provides a custom packaging. This custom package triggers the generation of a custom compacted file. I would like to create a functional test for it and given a project with a pom to verify if the file was generated.

which tool should I use ? pointing me to a code example would be great !

Cristiano
  • 1,414
  • 15
  • 22

1 Answers1

0

I would suggest to go via maven-invoker-plugin which supports such scenarios. Real examples can be found in many Maven plugins for example

khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • thanks Karl. I was able to create a simple test and a script for my plugin. But it is failing because the configuration pojo is not being injected. do I need to do any setup in order to have a @parameter with an alias injected? – Cristiano Aug 01 '14 at 12:52