2

Can Maven automatically build the required plugins from my source? Instead of having to build and upload them manually before I build the application, I would like to build everything from scratch in one go without a repository server.

Guess I could make a dependency to the plugin artifact and add it as module, so it would be build like any other module. But I would have to specify it as dependency for any other module to make sure it is built first.

2 Answers 2

1

Guess I could make a dependency to the plugin artifact and add it as module, so it would be build like any other module. But I would have to specify it as dependency for any other module to make sure it is built first.

There is no real other way to achieve this to guarantee the order of compilation (which is necessary for your code). The solution you are suggesting is the right way to proceed considering your automation objectives.

During the building process, the first artifacts will be installed in your local repository and become available for other modules to compile.

Sign up to request clarification or add additional context in comments.

1 Comment

Is it possible to use the maven-invoker-plugin for this? maven.apache.org/plugins/maven-invoker-plugin/examples/…
1

Listing the plugin as a module in a multi-module project should be enough.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.