在使用Apache Felix和Maven时,是否可以指定OBR存储库的相对路径?
例如,当我配置maven-bundle-plugin时,在配置部分中我有:
<configuration>
<instructions>
<Bundle-Category>sample</Bundle-Category>
<Bundle-SymbolicName>${artifactId}
</Bundle-SymbolicName>
<Export-Package>
${osgi.export}
</Export-Package>
</instructions>
<!-- OBR -->
<remoteOBR>repo-rel</remoteOBR>
<prefixUrl>file:///C:/Users/blah/obr-repo/releases</prefixUrl>
<ignoreLock>true</ignoreLock>
</configuration>同样的事情也适用于分发管理:
<distributionManagement>
<!-- Releases Repo -->
<repository>
<id>repo-rel</id>
<url>file:///C:/Users/blah/obr-repo/releases</url>
</repository>
</distributionManagement>如果我的Felix java项目(容器)位于C:/Users/blah,我可以使用相对路径“OBR -repo/release”指定我的obr吗?
谢谢。
发布于 2011-02-07 00:27:53
BND插件目前不支持相对URL,OBR URL处理程序也不支持。它只是一小部分复制/粘贴功能,因此URL实际上并没有进行任何转换。
https://stackoverflow.com/questions/4868479
复制相似问题