Build failure when mvn compile
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- java
- 領域
- build-system
調査の方向性
pom.xml から始め、mvn compile で使用されるコンパイラー設定を確認します。設定されている source と target のレベルを、現在の Maven compiler plugin が要求する Java バージョンと比較し、その後 mvn clean と mvn compile を実行します。source または target 5 のエラーなしでコンパイルが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I downloaded the source zip (from https://github.com/google/s2-geometry-library-java/archive/refs/heads/master.zip) and then:
mvn clean-> OKmvn compile->
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project s2-geometry-library: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[ERROR] -> [Help 1]
Linux system:
- Linux Mint 21.3 Cinnamon
- 5.15.0-142-generic
- Intel© Core™ i7-10850H CPU @ 2.70GHz × 6
OK I found the fix. I added these 2 lines in the properties section of the pom.xml file:
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
- 主要言語
- Java
- スター
- 587
- フォーク
- 232
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/s2-geometry-library-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
google/s2-geometry-library-java#56 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Added new ant target docs: "Generate documentation"対応中かも @ThomasThelen が 181 日前に担当しました。 オープンauto-migrated Type-Patch
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
google/s2-geometry-library-java#2 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
google/s2-geometry-library-java#44 · コメント 9 件 ·
google/s2-geometry-library-java の issue をすべて見る
似ている issue
-
[destination-snowflake] Custom domains rejected unlike source connections対応中かも @kuza55 が今日担当しました。 オープンautoteam community connectors/destination/snowflake team/use
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area-dashboard
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
component/operate kind/feature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Forge coverage prompts carry text the agent cannot act on対応中かも @graalvmbot が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
oracle/graalvm-reachability-metadata#10572 ·
メンテナーはふだん 1 日以内に返信
-
[CI] Core CI doesn't run for changes to amoro-format-lance (and amoro-web)対応中かも @MarkAlex1234 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信