maven - mvn depedency plugin and Hadoop -


i've got jar contains both map reduce code , few command line tools.

to distribute dependencies i'm packaging dependences in lib directoy within jar using maven dependency plugin:

       <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-dependency-plugin</artifactid>             <version>2.3</version>             <executions>                 <execution>                     <id>copy-dependencies</id>                     <phase>prepare-package</phase>                     <goals>                         <goal>copy-dependencies</goal>                     </goals>                     <configuration>                         <outputdirectory>${project.build.directory}/classes/lib</outputdirectory>                         <overwritereleases>false</overwritereleases>                         <overwritesnapshots>false</overwritesnapshots>                         <overwriteifnewer>true</overwriteifnewer>                         <excludescope>provided</excludescope>                     </configuration>                 </execution>                 <execution>                     <id>build-classpath</id>                     <phase>generate-sources</phase>                     <goals>                         <goal>build-classpath</goal>                     </goals>                     <configuration>                       configure plugin here                      </configuration>                 </execution>             </executions>         </plugin> 

i hoping have jar use lib directory when run various classes command line java -cp myjar.jar org.mycompany.myclass

however, doesn't see work despite best efforts manipulate manifest.mf

<configuration>                 <archive>                     <manifest>                         <addclasspath>true</addclasspath>                        <classpathprefix>./lib/</classpathprefix>                       <mainclass>com.mycompany.mainclass</mainclass>                     </manifest>                 </archive>             </configuration> 

is there way without using maven-assembly-plugin?

i assume talking using these dependencies in map/reduce jobs. if take @ this article pere ferrera bertran explains how use hadoop's distributed cache (and 2 other ways) that


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -