mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Maven build unpacks jars- would jar of jars work?
Date Sun, 05 Aug 2012 08:56:36 GMT
Yes.

Hadoop does do some strange and surprising things with jars when executing
them.

On Sun, Aug 5, 2012 at 2:25 AM, Alex Ott <alexott@gmail.com> wrote:

> At least Hadoop is able to find jars inside jar, if they're placed
> inside lib directory in the jar - I use this for packing my code (via
> assembly plugin), with following assembly description:
>
> <assembly
>   xmlns="
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
>                       http://maven.apache.org/xsd/assembly-1.1.0.xsd">
>   <id>job</id>
>   <formats>
>     <format>jar</format>
>   </formats>
>   <includeBaseDirectory>false</includeBaseDirectory>
>   <dependencySets>
>     <dependencySet>
>       <unpack>false</unpack>
>       <scope>runtime</scope>
>       <outputDirectory>lib</outputDirectory>
>       <excludes>
>         <exclude>${artifact.groupId}:${artifact.artifactId}</exclude>
>         <exclude>org.apache.hadoop:hadoop-core</exclude>
>       </excludes>
>     </dependencySet>
>     <dependencySet>
>       <unpack>true</unpack>
>       <includes>
>         <include>${artifact.groupId}:${artifact.artifactId}</include>
>       </includes>
>     </dependencySet>
>   </dependencySets>
> </assembly>
>
>
> On Sun, Aug 5, 2012 at 1:10 AM, Ted Dunning <ted.dunning@gmail.com> wrote:
> > I didn't think that Java supports jars inside jars.
> >
> > On Sat, Aug 4, 2012 at 5:04 PM, Lance Norskog <goksron@gmail.com> wrote:
> >
> >> The Maven build does a grand project unpacking multiple jars into one
> >> big one. Java apparently supports packing jars inside other jars- the
> >> outer jar needs a classpath property for the inside jars. When someone
> >> rearranged the Maven build, did they try this out? Is there a Maven
> >> task for jar-of-jars?
> >>
> >> --
> >> Lance Norskog
> >> goksron@gmail.com
> >>
>
>
>
> --
> With best wishes,                    Alex Ott
> http://alexott.net/
> Twitter: alexott_en (English), alexott (Russian)
> Skype: alex.ott
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message