开发者

Relative path for OBR repository?

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开发者_如何学Go>${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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜