Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[MSOURCES-150] Skip creation of sources jar when sources are empty

オープン
#197 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
build-system

調査の方向性

まず、maven-source-plugin の動作を maven-jar-plugin の skipIfEmpty オプションと比較し、空のメインソースとテストソースがどのように扱われるかに注目します。完了の条件は、source plugin がメインソースに対して skipIfEmpty を提供し、有効化された場合に空の sources jar の作成を回避し、既存のテストソースの動作を維持または検証することです。

索引モデルが issue の本文から書いたものです。

説明

enhancement priority:major

Peter De Maeyer opened MSOURCES-150 and commented

The maven-jar-plugin can be configured with skipIfEmpty to skip the creation of a jar when the main sources are empty. This is useful for example when a project only has test sources.

However, even if the sources are empty, the maven-source-plugin always creates a sources jar, even if there is no jar.

For symmetry reasons, it would therefore be useful if the maven-source-plugin also had an option skipIfEmpty.

Also consider the same for test sources. Although it seems that for test sources it already works like this by default.


Affects: 3.3.0

主要言語
Java
スター
36
フォーク
38
平均マージ
23時間 33分
マージ済み PR(30日)
9

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/maven-source-plugin のほかの issue

apache/maven-source-plugin の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。