在 Maven 專案中新增 OSGi 支援

您可以將 Maven 專案轉換為 OSGi 軟體組專案,以便在 Maven 專案中新增 OSGi 支援。

程序

  1. 用滑鼠右鍵按一下 Maven 專案,並選取配置 > 轉換為 OSGi 軟體組專案。
  2. 會顯示訊息,指出將修改 pom.xml 檔。按一下確定。

結果

會在專案中新增 OSGi 支援。會建立或修改下列檔案:
  • 會產生 manifest.mf 檔,並包含 pom.xml 中的配置和相依關係資訊。在您使用專案時,會自動更新這個 manifest.mf 檔。請勿編輯 manifest.mf 檔。
  • 會修改「專案物件模型 (POM)」檔 pom.xml。
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: last_date

File name: tconvert_maven2osgi.html