Перейти к содержимому
Mineforgian

MavenLoaderAPI

A custom external dependency loader is prepended to easily reduce the package size.

2K загрузок1 подписчиковApache-2.0foliapaperpurpurspigotvelocity

Обновлён 30 сентября 2024 г. · опубликован 18 сентября 2024 г.

  • MavenLoaderAPI demo (Velocity)

MavenLoaderAPI

A custom external dependency loader is prepended to easily reduce the package size.

Required

  • Java 17+
  • Velocity 3.3.0 ↔ latest (Optional)
  • BungeeCord 1.18 ↔ latest (Optional)
  • Spigot/Paper/Folia 1.18.2 ↔ latest (Optional)

Usage

1.4-SNAPSHOT introduced a repository whitelist mechanism to try to avoid some untrusted repositories from loading malicious dependencies.

Server

You need to add the following parameters to the Java startup parameters to enable it normally.

--add-opens=java.base/java.net=ALL-UNNAMED

Then download MavenLoader and put it in the Server plugin directory. It is recommended to keep MavenLoader the latest version.

Please confirm whether the plugin that relies on MavenLoaderAPI loads trusted dependencies and pay attention to safety.

Developer

Docs in: DEVELOPER_DOCS

Updater API in: USE_UPDATER

Example in: MavenLoader-Example

Compatibility

  • 1.2-SNAPSHOT: Implementing maven.yml
  • 1.4-SNAPSHOT: Implementing repository whitelisting
  • 1.5-SNAPSHOT: Support Bukkit
  • 1.6-SNAPSHOT (Coming soon): Support BungeeCord, PlugmanX. maven.yml support platform, reference-load keyword. Remove external API (now only allow maven.yml)

Config

enable_whitelist: true # Enable repository whitelist, default is true
# repository whitelist list
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 # Update Channel, Support: github, spigot, spiget

Statistics

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.5-SNAPSHOTРелиз1.21.4, 1.21.5, 1.21.6, 1.21.7folia, paper, purpur, spigot, velocity30 сентября 2024 г.Скачать (2.6 МБ)
1.4-SNAPSHOTРелиз1.21.1, 1.21.2, 1.21.3, 1.21.4velocity29 сентября 2024 г.Скачать (4.3 МБ)
1.3-SNAPSHOTРелиз1.20.5, 1.20.6, 1.21, 1.21.1velocity22 сентября 2024 г.Скачать (4.3 МБ)
1.2-SNAPSHOTРелиз1.20.5, 1.20.6, 1.21, 1.21.1velocity21 сентября 2024 г.Скачать (4.3 МБ)
1.1-SNAPSHOTРелиз1.20.5, 1.20.6, 1.21, 1.21.1velocity19 сентября 2024 г.Скачать (3.6 МБ)
1.0-SNAPSHOTРелиз1.20.5, 1.20.6, 1.21, 1.21.1velocity18 сентября 2024 г.Скачать (3.6 МБ)

Ченджлог

1.5-SNAPSHOTРелиз1.21.5, 1.21.6, 1.21.7 · 30 сентября 2024 г.
  • Support Spigot 1.18.2+ (Spigot/Paper/Folia)
1.4-SNAPSHOTРелиз1.21.2, 1.21.3, 1.21.4 · 29 сентября 2024 г.
  • Adding custom central repository mirror sources is no longer allowed
  • Introducing repository whitelist (default: true)
1.3-SNAPSHOTРелиз1.20.6, 1.21, 1.21.1 · 22 сентября 2024 г.
  • Improve maven.yml operation mechanism
  • Update maven-loader-api to 1.0.2
1.2-SNAPSHOTРелиз1.20.6, 1.21, 1.21.1 · 21 сентября 2024 г.

MavenLoaderAPI 1.2-SNAPSHOT Update

  • Support reading repositories and dependencies from the maven.yml file in the plugin
1.1-SNAPSHOTРелиз1.20.6, 1.21, 1.21.1 · 19 сентября 2024 г.
  • Update maven-loader-api: 1.0.0 => 1.0.1
  • Check Java flags in advance

Комментарии

Загружаем…