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

Build fails because redundant “git.properties” definition from "pom.xml"

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

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java
領域
build-system

調査の方向性

root pom.xml のリソースおよび除外設定を確認し、その後 mvn clean package -DskipTests で失敗を再現します。git.properties の冗長な処理が解消され、NoSuchFileException なしでビルドが完了することを確認します。

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

説明

bug

Describe the bug
There are some redundant “git.properties” definition from "pom.xml" which causes build fail.

To Reproduce

  1. Build the project via:
    mvn clean package -DskipTests

  2. Build fails with below error message:
    java.nio.file.NoSuchFileException: xxx\distribution..\git.properties

Expected behavior
Build should succeeds.

Drill version
1.21.2

Additional context
I've checked "pom.xml" and found the root cause of this issue:

> <configuration>
>               <outputDirectory>${project.build.outputDirectory}</outputDirectory>
>               <resources>
>                 <resource>
>                   <!--suppress UnresolvedMavenProperty -->
>                   <directory>${maven.multiModuleProjectDirectory}</directory>
>                 </resource>
>                     <include>git.properties</include>
>               </resources>
> </configuration>
> 

But, "git.properties" also exist on <exclude>...</exclude>definition, which causes conflict.

> <configuration>
>           <excludes>
>             <!-- Please keep this list sorted. -->
>             <exclude>**/*.accdb</exclude>
>             <exclude>**/*.access_log</exclude>
>             <exclude>**/*.access_log</exclude>
>             <exclude>**/.asf.yaml</exclude>
>             <exclude>**/*.autotools</exclude>
>             <exclude>**/*.avi</exclude>
>             <exclude>**/*.avro</exclude>
>             <exclude>**/.buildpath</exclude>
>             <exclude>**/*.checkstyle</exclude>
>             <exclude>**/.classpath</exclude>
>             <exclude>**/client/*build*/**</exclude>
>             <exclude>**/clientlib/y2038/*.c</exclude> <!-- All the files here should have MIT License -->
>             <exclude>**/clientlib/y2038/*.h</exclude> <!-- All the files here should have MIT License -->
>             <exclude>**/client/tags</exclude>
>             <exclude>**/cmake_install.cmake</exclude>
>             <exclude>**/*.cnf</exclude>
>             <exclude>**/control</exclude>
>             <exclude>**/*.cproject</exclude>
>             <exclude>**/*.css</exclude>
>             <exclude>**/*.csv</exclude>
>             <exclude>**/*.csvh</exclude>
>             <exclude>**/*.csvh-test</exclude>
>             <exclude>**/*.dbf</exclude>
>             <!-- TODO DRILL-4336: try to avoid the need to add this -->
>             <exclude>dependency-reduced-pom.xml</exclude>
>             <exclude>**/*.drill</exclude>
>             <exclude>**/.drill.parquet_metadata</exclude>
>             <exclude>**/*.eps</exclude>
>             **<exclude>**/git.properties</exclude>**
>             ...

So, it's necessary to remove the redundant “git.properties” definition from "<include>...</include>" block.

主要言語
Java
スター
2k
フォーク
988
平均マージ
4日 1時間
マージ済み PR(30日)
6

環境構築

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

はじめの一歩

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

apache/drill のほかの issue

apache/drill の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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