Does anyone know a maven plugin that can works this way:

  1. You can set a phase of execution
  2. You can set a list of files by some pattern
  3. You can point to some arbitrary class from the dependency of that plugin (the dependency you have set in pom.xml) - and the class is in charge of processing all that matching files.

There exist maven-processor-plugin which is used for annotations and works exactly the way described, but I need something like it only for not processing annotations but rather arbitrary files.

I've seen some specialized plugins - like, say - antlr4 plugin, or, say, - but what about something general?

Also, it would be nice if someone will create a tag - maven or maven-plugin.

1 Answer 1


OK, I've wrote it myself and published at github. Behold the Processit Maven Plugin.

Basically you add it as a plugin, add a dependency to this plugin declaration and then just list specific processors that need to be implemented somewhere else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.