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

Describe `.kar/META-INF/MANIFEST.MF`: `Karaf-Feature-Start: false` in user-guide/kar.adoc

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
documentation

調査の方向性

user-guide/kar.adoc から始め、そこにある .kar アーカイブの説明を、kar/src/main/java/org/apache/karaf/kar/internal/Kar.java に記載された MANIFEST.MF の動作と比較してください。Karaf-Feature-Start と Karaf-Feature-Repos の役割を明確にし、MANIFEST.MF が存在しなくてもよいかどうかを明記してください。マニュアルがこれらの点に回答していれば完了です。

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

説明

According to https://github.com/apache/karaf/issues/2192 the META-INF/MANIFEST.MF file in a .kar archive serves informational purpose.

However kar/src/main/java/org/apache/karaf/kar/internal/Kar.java contains:

/**
 * Representation of a Karaf Kar archive
 * 
 * A Kar archive is a jar file with a special structure that can be used
 * to deploy feature repositories, maven repo contents and resources for the
 * karaf installation.
 * 
 * meta-inf/Manifest: 
 *   Karaf-Feature-Start: (true|false) Controls if the features in the feature repos should be started on deploy
 *   Karaf-Feature-Repos: (uri)* If present then only the given feature repo urls are added to karaf if it is not
 *      present then the karaf file is scanned for repo files
 *      
 * repository/
 *   Everything below this directory is treated as a maven repository. On deploy the contents
 *   will be copied to a directory below data. This directory will then be added to the 
 *   maven repos of pax url maven
 *   
 * resource/
 *   Everything below this directory will be copied to the karaf base dir on deploy
 * 
 */

and on the karaf console kar:create repoName [features] puts in .kar/META-INF/MANIFEST.MF:

Manifest-Version: 1.0
Karaf-Feature-Start: false
Karaf-Feature-Repos: mvn:…features

https://karaf.apache.org/manual/latest/kar says a .kar file is a zip archive, so does not need MANIFEST.MF, but the above comment defines how to interpret MANIFEST.MF. As the line Karaf-Feature-Repos line states if present and the line Karaf-Feature-Start does not say so, this implies that Karaf-Feature-Start must be present.

主要言語
Java
スター
715
フォーク
667
平均マージ
1日 6時間
マージ済み PR(30日)
109

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

apache/karaf のほかの issue

apache/karaf の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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