通过maven bundle和sling插件安装osgi依赖项
我有一个osgi捆绑包,它是使用maven捆绑包插件创建的:通过maven bundle和sling插件安装osgi依赖项,osgi,sling,maven-bundle-plugin,Osgi,Sling,Maven Bundle Plugin,我有一个osgi捆绑包,它是使用maven捆绑包插件创建的: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <configuration> <instructions> <Bundle-SymbolicName>${project.art
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
</instructions>
</configuration>
</plugin>
org.apache.felix
maven捆绑插件
${project.artifactId}
该捆绑包通过maven sling插件安装
我有一个fasterxml.jackson依赖项,它作为osgi包存在于我的.m2 repo中,并在我的项目中充当依赖项
如何让maven也将此依赖项部署为osgi捆绑包
目前,我必须在osgi容器中手动安装它
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.2.2</version>
</dependency>
com.fasterxml.jackson.core
杰克逊核心
2.2.2
编辑:
简化:
如何让maven意识到我在pom.xml中称为依赖项的osgi捆绑包应与依赖它的捆绑包一起安装在osgi容器中?您可能会发现最好将捆绑包与
/content
一起打包为应用程序的一部分,/apps
文件夹中应用程序的/apps/myapp/install
部分将导致提供程序将库作为捆绑包安装
本文介绍了使用maven自动打包/部署应用程序的几种方法:
mvn org.apache.sling:maven-sling-plugin:install-file -Dsling.file=jackson-databind-2.2.2.jar