OBR 存储库的相对路径?
是否可以指定我的 OBR 的相对路径将 Apache Felix 与 Maven 一起使用时的存储库?
例如,当我配置我的 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/releases”指定我的 OBR?
谢谢。
Is it possible to specify a relative path to my OBR repository when using Apache Felix with Maven?
For example, when I am configuring my maven-bundle-plugin, in the configuration section I have:
<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>
and the same thing for distribution management:
<distributionManagement>
<!-- Releases Repo -->
<repository>
<id>repo-rel</id>
<url>file:///C:/Users/blah/obr-repo/releases</url>
</repository>
</distributionManagement>
If my Felix java project (container) is located at C:/Users/blah, can I just specify my OBR with relative path "obr-repo/releases"?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BND 插件当前不支持相对 URL,OBR URL 处理程序也不支持。这只是一些复制/粘贴功能,因此 URL 并没有真正进行任何转换。
The BND plugin doesn't currently support relative URLs nor does the OBR URL handlers. It's just a bit of copy/paste functionality, so there's not really any transforming going on with the URLs.