0

我是 Maven 和 OSGI 的新手,谁能帮我知道如何在 karaf OSGI 容器上部署 Microsoft Azure API jar?以下是我的 Maven 项目的 pom 内容。com.microsoft.windowsazure microsoft-windowsazure-api 0.4.3

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.1</version>
    </dependency>
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-core-asl</artifactId>
        <version>1.9.2</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-jaxrs</artifactId>
        <version>1.9.2</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>1.9.2</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-xc</artifactId>
        <version>1.9.2</version>
    </dependency>
    <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
    </dependency>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.2.3-1</version>
    </dependency>
    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-client</artifactId>
        <version>1.13</version>
    </dependency>
    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-core</artifactId>
        <version>1.13</version>
    </dependency>
    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-json</artifactId>
        <version>1.13</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.jettison</groupId>
        <artifactId>jettison</artifactId>
        <version>1.1</version>
    </dependency>
    <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4.5</version>
    </dependency>

我嵌入了如下依赖项

                                         <Embed-Dependency>
                        microsoft-windowsazure-api,
                        commons-lang3,
                        commons-logging,
                        jackson-core-asl,
                        jackson-jaxrs,
                        jackson-mapper-asl,
                        jackson-xc,
                        javax.inject,
                        jaxb-impl,
                        jersey-client,
                        jersey-core,
                        jersey-json,
                        jettison,
                        mail
                    </Embed-Dependency>

当我这样做时,它会不断显示不同包的缺失依赖项。我已经(*)在 pom.xml 中导入了所有包。

4

2 回答 2

1

下载 bnd.jar(捆绑工具)

将 azur 和 bnd 都保存在一个目录中

转到该目录并运行以下命令

java -jar bnd.jar wrap microsoft-windowsazure-api 0.4.3.jar

tada ...您的捆绑包已准备就绪,只需部署它并继续您的工作:)

于 2013-07-23T07:23:29.020 回答
0

查看 Karaf 的 jcloud 功能,它还包含一些用于 azure 的捆绑包。我相信这会给你一个工作包的列表。

于 2013-07-18T18:03:22.443 回答