- 版权类型
- 授权转载
- 插件中文名称
- MavenLoaderAPI
- 插件英文名称
- MavenLoaderAPI
- 支持的核心(代理-服务端)
- Bungee
- WaterFall
- Velocity
- Spigot
- PaperSpigot
- Folia
- Purpur
- PufferFish
- Leaves
- 其他核心
- 语言支持
- English
- 适配版本(Java)
- 1.21
- 1.20
- 1.19
- 1.18
MavenLoaderAPI 是一个简单的自定义外部依赖项载入程序,允许开发人员轻松加载来自各个仓库的依赖项。
[MD]
<div align=center>
<img src="https://badges.moddingx.org/modrinth/downloads/mavenloader-api" alt="">
<img src="https://badges.moddingx.org/modrinth/versions/mavenloader-api" alt="">
<img src="https://badges.moddingx.org/curseforge/downloads/1104872" alt="">
<img src="https://badges.moddingx.org/curseforge/versions/1104872" alt="">
<img src="https://pluginbadges.glitch.me/api/...b=LevelTranic/MavenLoader&style=for-the-badge" alt="">
<img src="https://img.shields.io/github/commit-activity/w/LevelTranic/MavenLoader?style=flat-square" alt="">
<img src="https://img.shields.io/github/downloads/LevelTranic/MavenLoader/total?style=flat-square" alt="">
<img src="https://img.shields.io/github/release-date/LevelTranic/MavenLoader?style=flat-square" alt="">
<img src="https://img.shields.io/github/v/release/LevelTranic/MavenLoader?style=flat-square" alt="">
</div>
[/MD]
必须的
用法
MavenLoaderAPI 自 1.4-SNAPSHOT 起引入了存储库白名单机制,以试图避免潜在的恶意依赖项载入利用。
服务器
你需要在启动参数中加入如下参数
然后将MavenLoaderAPI直接放到服务器的插件文件夹中 (是的,这是一个插件),建议将其保持在最新版本。
请确认依赖MavenLoaderAPI的插件是否载入可信依赖,并注意安全
开发者
[MD]
## 各版本兼容性
- 1.2-SNAPSHOT: 引入 maven.yml
- 1.4-SNAPSHOT: 引入存储库白名单
- 1.5-SNAPSHOT: 支持Bukkit (在这之前,它是专为Velocity设计的)
- 1.6-SNAPSHOT (即将推出): 支持BungeeCord,提供PlugmanX等热加载插件的兼容性 (ServerUtils由于被Velocity破坏且维护不积极,作者已放弃对其适配), maven.yml 支持 platform, reference-load关键字,禁用外部API (仅允许使用maven.yml来设定依赖项和存储库)
## 配置文件
统一位于插件目录下的MavenLoader目录中
```yaml
enable_whitelist: true # 启用存储库白名单,默认开
# 存储库白名单列表
whitelist:
- https://repo.maven.apache.org/maven2
- https://repo.maven.apache.org/maven2
- https://oss.sonatype.org/content/groups/public/
- https://repository.jboss.org/nexus/content/groups/public
- https://maven-central-asia.storage-download.googleapis.com/maven2/
- https://maven-central-eu.storage-download.googleapis.com/maven2/
- https://maven-central.storage-download.googleapis.com/maven2/
- https://jitpack.io
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/
- https://repo.papermc.io/repository/maven-public/
- https://repo.repsy.io/mvn/rdb/default
updater:
check: true # 更新检查,默认开
source: github # 更新检查通道,支持: github, spigot, spiget
```
## 统计数据
- Velocity: https://bstats.org/plugin/velocity/MavenLoader/23396
- Spigot: https://bstats.org/plugin/bukkit/MavenLoader-Spigot/23501
- Bungee: https://bstats.org/plugin/bungeecord/MavenLoader-Bungee/23524
[/MD]
授权声明
[MD]
<div align=center>
<img src="https://badges.moddingx.org/modrinth/downloads/mavenloader-api" alt="">
<img src="https://badges.moddingx.org/modrinth/versions/mavenloader-api" alt="">
<img src="https://badges.moddingx.org/curseforge/downloads/1104872" alt="">
<img src="https://badges.moddingx.org/curseforge/versions/1104872" alt="">
<img src="https://pluginbadges.glitch.me/api/...b=LevelTranic/MavenLoader&style=for-the-badge" alt="">
<img src="https://img.shields.io/github/commit-activity/w/LevelTranic/MavenLoader?style=flat-square" alt="">
<img src="https://img.shields.io/github/downloads/LevelTranic/MavenLoader/total?style=flat-square" alt="">
<img src="https://img.shields.io/github/release-date/LevelTranic/MavenLoader?style=flat-square" alt="">
<img src="https://img.shields.io/github/v/release/LevelTranic/MavenLoader?style=flat-square" alt="">
</div>
[/MD]
必须的
- Java 17+
- Velocity 3.3.0 ↔ 最新 (可选)
- BungeeCord 1.18 ↔ 最新(可选,下个版本更新)
- Spigot/Paper/Folia 1.18.2 ↔ 最新(可选)
用法
MavenLoaderAPI 自 1.4-SNAPSHOT 起引入了存储库白名单机制,以试图避免潜在的恶意依赖项载入利用。
服务器
你需要在启动参数中加入如下参数
代码:
--add-opens=java.base/java.net=ALL-UNNAMED
请确认依赖MavenLoaderAPI的插件是否载入可信依赖,并注意安全
开发者
[MD]
## 各版本兼容性
- 1.2-SNAPSHOT: 引入 maven.yml
- 1.4-SNAPSHOT: 引入存储库白名单
- 1.5-SNAPSHOT: 支持Bukkit (在这之前,它是专为Velocity设计的)
- 1.6-SNAPSHOT (即将推出): 支持BungeeCord,提供PlugmanX等热加载插件的兼容性 (ServerUtils由于被Velocity破坏且维护不积极,作者已放弃对其适配), maven.yml 支持 platform, reference-load关键字,禁用外部API (仅允许使用maven.yml来设定依赖项和存储库)
## 配置文件
统一位于插件目录下的MavenLoader目录中
```yaml
enable_whitelist: true # 启用存储库白名单,默认开
# 存储库白名单列表
whitelist:
- https://repo.maven.apache.org/maven2
- https://repo.maven.apache.org/maven2
- https://oss.sonatype.org/content/groups/public/
- https://repository.jboss.org/nexus/content/groups/public
- https://maven-central-asia.storage-download.googleapis.com/maven2/
- https://maven-central-eu.storage-download.googleapis.com/maven2/
- https://maven-central.storage-download.googleapis.com/maven2/
- https://jitpack.io
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/
- https://repo.papermc.io/repository/maven-public/
- https://repo.repsy.io/mvn/rdb/default
updater:
check: true # 更新检查,默认开
source: github # 更新检查通道,支持: github, spigot, spiget
```
## 统计数据
- Velocity: https://bstats.org/plugin/velocity/MavenLoader/23396
- Spigot: https://bstats.org/plugin/bukkit/MavenLoader-Spigot/23501
- Bungee: https://bstats.org/plugin/bungeecord/MavenLoader-Bungee/23524
[/MD]
授权声明