2013-07-18 93 views
0

我是Maven和OSGI的新手,任何人都可以幫助我知道如何在karaf OSGI容器上部署Microsoft Azure API jar嗎? 以下是我的Maven項目的pom內容。 com.microsoft.windowsazure 微軟windowsazure-API 0.4.3 在karaf上部署Microsoft Azure API jar

<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中導入了所有包裹(*)

回答

1

下載bnd.jar(捆綁工具)

保持海岸和BND罐子都在目錄中

進入該目錄並運行以下命令

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

田田......你的包已準備就緒,只需部署它並繼續工作:)

0

看看卡拉夫的jcloud功能它還包含一些天藍色的捆綁包。我確信這會給你一個捆綁工作清單。