Hi Sumit,

Yes, you can just use individual providers or apis. You can download
individual provider and api jars fro Maven Central [1] and [2]; just
make sure to download all required dependencies. There are also some
providers that are still in labs [3] and use a different groupId.

To make sure you are not missing any dependency, you can create a
pom.xml like the following one:

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <properties>
    <jclouds.version>1.7.0</jclouds.version>
  </properties>
  <groupId>org.apache.jclouds.examples</groupId>
  <artifactId>jclouds-deps</artifactId>
  <version>1.0</version>
  <dependencies>
    <dependency>
      <groupId>org.apache.jclouds.provider</groupId>
      <artifactId>your-provider</artifactId>
      <version>${jclouds.version}</version>
    </dependency>
  </dependencies>
</project>

And run the following Maven command:

mvn clean dependency:copy-dependencies "-DoutputDirectory=./lib"

That will download the provider jar and its dependencies and leave
them in the "./lib" directory.




HTH!

Ignasi




[1] http://search.maven.org/#search%7Cga%7C1%7Corg.apache.jclouds.provider
[2] http://search.maven.org/#search%7Cga%7C1%7Corg.apache.jclouds.api
[3] http://search.maven.org/#search%7Cga%7C1%7Corg.apache.jclouds.labs

On 13 January 2014 09:27, Sumit Gaur <[email protected]> wrote:
> Hi all,
> I need to understand the  Jclouds packaging as a stand alone library or
> webapp. I know we can simply add a dependency in our project if we have
> maven support. What I am trying to understand - Using JClouds in a project
> that is not under maven. Is there anyway where I can simply select providers
> that I need support for jclouds bundle and use it ?
>
> Thank
> sumit
>
>
>

Reply via email to