1

将 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/releases”指定我的 OBR 吗?

谢谢。

4

1 回答 1

1

BND 插件当前不支持相对 URL,OBR URL 处理程序也不支持。这只是一些复制/粘贴功能,因此 URL 并没有真正进行任何转换。

于 2011-02-06T16:27:53.320 回答