Hi,
I'm trying to deploy my simple example but I've some problem in create a
lib with jcloud dependencies using maven.

I've added maven-dependency-plugin as follow in my pom.xml

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.5.1</version>
                <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
                <goal>copy-dependencies</goal>
            </goals>
            <configuration>

<includeGroupIds>org.apache.jclouds.labs,org.apache.jclouds.api,ch.qos.logback,org.apache.jclouds.driver</includeGroupIds>
                <!--
outputDirectory>${project.build.directory}/lib/</outputDirectory-->
            </configuration>
          </execution>
         </executions>
            </plugin>

But it seems not working correctly, cause when I run it on a linux host,
this Exception has been raised:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/jclouds/compute/ComputeService

thanks for your help
regards
luca

P.S.. I've found this suggestion
*"Create a pom.xml file with dependencies you need (ex.
org.apache.jclouds/jclouds-all) and the snapshot repository, if you want
snapshot version (1.8.0-SNAPSHOT)."*

but I haven't completely understood it.

Reply via email to