In a Multi-Module maven project, is it possible to have module B depend on a Plugin provided by Module A

I am trying to build a project containing multiple modules, one of which is a maven plugin which we use to generate sources further down the tree as such:

  1. Module A: generator-plugin
  2. Module B: uses generator-plugin

But when I try to build the parent project (doing a mvn clean deploy) during the clean phase, it tries to resolve the generator-plugin, which is obviously before it's built it.

Is there a way for this to be done without separating out the modules and building it first manually?

Answers


With Maven, I would suggest doing the most straightforward thing which would work and I think you know what that is--just make these two things separate Maven projects.


Need Your Help

Extracting + Saving to CSV with Header?

csv imacros

Is it possible to, when I save the extracted values in a csv file, add a Header or something in the first row of each column, so it's easier to know what the values refer to?

Is it possible to detect that the IE8 debugger is attached

javascript ie-developer-tools

I have some code in my application that wraps function.apply and function.call in try/catch blocks. It's handy for catching errors and building up a pseudo-stack using arguments.caller but it plays...