自动构建maven插件
Maven 可以自动从我的源代码构建所需的插件吗?我不想在构建应用程序之前手动构建和上传它们,而是希望在没有存储库服务器的情况下从头开始构建所有内容。
我想我可以对插件工件进行依赖并将其添加为模块,这样它就会像任何其他模块一样构建。但我必须将其指定为任何其他模块的依赖项,以确保首先构建它。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有真正的其他方法可以实现此目的以保证编译顺序(这对于您的代码是必需的)。您建议的解决方案是考虑您的自动化目标的正确方法。
在构建过程中,第一个工件将安装在您的本地存储库中,并可供其他模块进行编译。
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.