使用 p2 的特性建置

定義新內容:

p2.gathering = true

將使特性建置有一些變更。另請參閱特性 meta 資料佈置的頁面。

尤其,建置時不產生每個平台的保存檔,而是產生單一 p2 儲存庫,其中包含一群所有的平台。實際上,這會強制隱含的 groupConfigurations=true。

下列為相關內容的清單(新與舊):

p2.gathering設為 true,以開啟 p2 發佈者為基礎的建置。
p2.build.repo本端建置時期 p2 儲存庫的 URI,預設值是 file:${buildDirectory}/buildRepo。結果將從這裡鏡映到最終保存位置。
groupConfigurationsp2.gathering=true 有設定groupConfigurations=true 的隱含效果。如果要控制保存檔的輸出格式,請使用 group.group.group 配置。
generate.p2.metadata這是舊的 meta 資料產生器整合的內容。當 p2.gathering=true 時,它沒有作用。
p2.metadata.repo
p2.artifact.repo
這些內容與 generate.p2.metadata 相關聯,當 p2.gathering=true 時,這些內容對特性建置沒有作用,因為在此情況下,預設行為是建立 p2 儲存庫。 (不過,這些內容會影響產品建置)。
p2.metadata.repo.name
p2.artifact.repo.name
這是選用的,這些內容將用來命名最終特性儲存庫。
p2.compress設為 true,將最終特性儲存庫 xml 壓縮成 jar。
p2.flavor對特性建置沒有作用,但會影響產品建置。
p2.publish.artifacts當 p2.gathering=true(舊內容)時,沒有作用
p2.root.name
p2.root.version
當 p2.gathering=true(舊內容)時,沒有作用
p2.context.repos定義環境定義儲存庫。請參閱重複使用 meta 資料。
repoBaseLocation包含要使用 <p2.repo2runnable> 轉換的儲存庫之資料夾。另請參閱重複使用 meta 資料。
transformedRepoLocation包含 <p2.repo2runnable> 的輸出之資料夾。另請參閱重複使用 meta 資料。
p2.category.site用來定義種類的 site.xml 檔的 URL。
p2.category.definition用來定義種類的 category.xml 檔的 URL。
p2.category.prefix定義字首,以確保從不使用唯一名稱的 site/category 檔案產生之種類 IU 有唯一 ID。
skipMirroring跳過鏡映步驟,不建立最終保存檔。建置結果可在 ${p2.build.repo} 中找到。