I'm creating a Mojo which doesn't need a project to run.
I would like to use something similar to org.apache.maven.model.FileSet
(providing multiple directories with includes and excludes) as a @parameter
but my problem is that I need to be able to set those values using command line.
Any idea how to achieve this?
Anyone looking for the solution:
did the trick for me. It might require slight modification, depending on a plugin you're configuring, but you get the idea.
Tested on Maven 3.5.0
See:
POM
Mojo
Run