Support additional plugin JAR directories with plugin data kept in the default directory
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing CLI argument parsing and plugin loading in Velocity; the issue does not name specific files or tests. Check how plugin JAR discovery, dependency resolution, duplicate-ID checks, and @DataDirectory are currently connected. Done means a repeatable --add-plugin-dir loads JARs from extra directories while plugin data remains under the default plugins/<plugin-id>/ directory, with existing behavior unchanged when the option is omitted.
索引モデルが issue の本文から書いたものです。
説明
Requested Feature
Add an optional, repeatable CLI argument to load plugin JARs from additional directories, similar to Paper’s --add-plugin-dir:
java -jar velocity.jar --add-plugin-dir /opt/velocity/plugin-jars
Plugin data provided through @DataDirectory should remain under the default plugins/<plugin-id>/ directory, regardless of where the JAR is located.
Plugins from all directories should participate in the same dependency resolution and duplicate-ID checks. Existing behavior should remain unchanged when the argument is not provided.
Why is this needed?
I’m building Docker images containing a specific set of Velocity plugins. The plugin JARs should be included in the image, while configuration and plugin data should persist in an external volume.
Currently, both share the plugins/ directory. Mounting a volume over that directory hides the JARs packaged in the image.
Separating JAR discovery from plugin data storage would allow multiple proxy instances to use the same image, each with its own configuration and data, using one mounted plugin-data directory per instance. Updating the image would update the plugins without replacing their persistent data.
Alternative Solutions
The alternatives I’ve considered are:
- Mounting each plugin’s data folder individually. This requires maintaining a separate mount for every plugin.
- Copying image-provided JARs into the mounted directory at startup. This requires synchronization and cleanup logic to prevent removed or outdated plugins from remaining in the volume.
- Creating symbolic links from the mounted directory to image-provided JARs. This also requires startup and cleanup logic.
An additional plugin directory would support this directly without those workarounds.
Additional Information
The intended layout would be:
/opt/velocity/plugin-jars/ # Plugin JARs packaged in the image
/velocity/plugins/ # Mounted volume for plugin configuration and data
Paper already provides a similar --add-plugin-dir argument.
I’d be interested in contributing a PR if this approach is acceptable to the maintainers.
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 983
- 平均マージ
- 4日 14時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PaperMC/Velocity のほかの issue
-
Add a Security Policy再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンtype: feature
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
PaperMC/Velocity#1914 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ClosestLocaleMatcher replaces exact locales with the last registered variant (en_US / en_PT)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
GS4 query handler throws on short/malformed datagrams instead of dropping them対応中かも @nezxenka が 121 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Plugin messages silently dropped during player join when getConnectedServer() is null対応中かも @SendableMetatype が 30 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
type: feature
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
PaperMC/Velocity の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
linagora/twake-calendar-side-service#1578 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
moneymanagerex/android-money-manager-ex#3122 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
tchiotludo/akhq#3438 ·
メンテナーはふだん 1 日以内に返信