开发者

Automatically build maven plugins

开发者 https://www.devze.com 2023-03-14 13:35 出处:网络
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

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 a开发者_C百科ny other module to make sure it is built first.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消