如何指定 Maven 插件“jar”的直接路径?

发布于 2025-01-15 11:51:28 字数 382 浏览 3 评论 0原文

简短版本:
我正在尝试将本地 JAR 引用为 maven-plugin。
这可能吗?如果是这样,我在哪里可以找到相关文档?

长版:
我知道不建议这样做,但这是在我的插件的“集成测试”上下文中完成的。
作为我的插件单元测试的一部分,我想运行完整的“干净测试”(集成测试)循环到示例项目。
此示例项目需要插件的 jar,而不一定是安装在我的本地存储库上的 jar。

Short version:
I am trying to reference a local JAR as a maven-plugin.
Is that possible? if so, where can I find documentation for that?

Long version:
I know this is not recommended but this is done in an "integration test" context for my plugin.
As part of my plugin's unit tests I want to run a full "clean test" (integration test) cycle to a sample project.
This sample project needs the jar of the plugin and not necessarily the one installed on my local repository.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文