自动构建maven插件

发布于 2024-11-16 22:40:54 字数 160 浏览 5 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

箜明 2024-11-23 22:40:54

我想我可以依赖
插件工件并将其添加为模块,
所以它会像其他任何东西一样构建
模块。但我必须指定它
作为任何其他模块的依赖项
确保首先构建它。

没有真正的其他方法可以实现此目的以保证编译顺序(这对于您的代码是必需的)。您建议的解决方案是考虑您的自动化目标的正确方法。

在构建过程中,第一个工件将安装在您的本地存储库中,并可供其他模块进行编译。

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.

淡淡绿茶香 2024-11-23 22:40:54

将插件列为多模块项目中的模块应该就足够了。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文