当开发的插件不想上传idea插件中央仓库或者嫌上传中央仓库审批过于麻烦时,可以使用本地搭建IDEA插件仓库的方式提供IDEA下载
创建一个仓库xml文件,用于记录插件仓库中所有插件的下载地址、版本等信息
内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--The <plugins> element contains the description of the plugins available at this repository. Required.
-->
<plugins><!--Each <plugin> element describes one plugin in the repository. Required.id - used by JetBrains IDEs to uniquely identify a plugin. Required. Must match <id> lurl - path to download the plugin JAR/ZIP file. Required. Must be HTTPSversion - version of this plugin. Required. Must match <version> l--><plugin id="com.dongbao.dhgAuthorityPlugin" url="192.168.2.178:81/dhg-authority-plugin-0.0.8.zip"version="0.0.8"><idea-version since-build="202.2" until-build="214.7" /></plugin>
</plugins>
上面仓库文件我声明了一个版本为0.0.8的名叫dhgAuthorityPlugin的插件,并且注明了下载地址与适用的IDEA版本
上传到一个服务器,能够使用地址访问即可,使用浏览器打开就是上方的这个xml。
将第二步配置访问xml的地址配置进idea的插件仓库地址配置中
然后在idea的插件搜索自己定义的插件名称即可搜索到定义的插件并且可以正常的下载更新,在推荐插件处也会显示出所配置仓库所存在的可用插件。
本文发布于:2024-01-28 23:18:31,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170645511611017.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |