具有相同模块依赖性Intellij的多个插件文件

发布于 2025-01-28 00:08:09 字数 378 浏览 5 评论 0原文

我已经在Intellij(社区版)中创建了一个核心模块,以轻松设置我的插件(Minecraft),并且不会重写每个UTIL类。

我遇到了一些问题:

假设我有2个插件,称为plugin1和plugin2,均导入mycoreapi模块。

如果我同时构建插件(一个和两个),将mycoreapi添加为文物中的编译输出,然后修改某些内容,例如,删除Mycoreapi内部的方法。我必须重建两个插件,因为它们具有相同的模块依赖es,并具有相同的包装。

是否有一种方法可以镜像或制作每个插件项目中使用不同包装的克隆? 示例:它不是两个插件的mrbast.mycoreapi,而是me.mrbast.pluginone.mycoreapi和me.mrbast.plugintwo.mycoreapi。

i have created a core module in IntelliJ (Community Edition) to setup easily my plugins(Minecraft) and do not re-write every Util class.

I have encountered a few problems:

Let's say i have 2 plugins, called Plugin1 and Plugin2, both import the MyCoreAPI module.

if i build both plugins(one and two), adding the MyCoreAPI as compile output in the artifacts and then modify something, let's say remove a method inside MyCoreAPI. I have to rebuild both Plugins because they have the same module dependecy with same package.

Is there a way to mirror or to make a clone with different package for each Plugin project?
example: instead of being me.mrbast.mycoreapi for both plugins, it becomes me.mrbast.PluginOne.mycoreapi and me.mrbast.PluginTwo.mycoreapi.

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

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

发布评论

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