mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Ferrel (JIRA)" <>
Subject [jira] [Commented] (MAHOUT-1126) Mac builds won't unjar
Date Sat, 01 Jun 2013 16:06:21 GMT


Pat Ferrel commented on MAHOUT-1126:

Right you are and so the solution has changed to delete the file, not the directory. Still
it's a post build process thing and new people have to figure out the solution over and over.
There used to be a special exclude in the examples/src/main/assembly/job.xml shown below but
I don't think that works anymore. Maybe that could be the source of a permanent fix? I'm not
a Maven expert.

BTW I don't build in examples but I so use it as an example of how to create a separate build
and end up with the same problem because it includes the same deps and license. The problem
is obviously not Mahout, but that is the infection vector...

        <!-- This jar contains a LICENSE file in the combined package. Another JAR includes
          a licenses/ directory. That's OK except when unpacked on case-insensitive file
          systems like Mac HFS+. Since this isn't really needed, we just remove it. -->

> Mac builds won't unjar
> ----------------------
>                 Key: MAHOUT-1126
>                 URL:
>             Project: Mahout
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8
>         Environment: Builds on the Mac
>            Reporter: Pat Ferrel
>              Labels: build
>             Fix For: 0.8
> On the Mac you have to remove the licenses in the mahout jar or hadoop can't unjar mahout.
The Mac has a case insensitive file system and so can't tell the difference between LICENSE
and license. This was fixed at one point
> zip -d mahout/examples/target/mahout-examples-0.8-SNAPSHOT-job.jar META-INF/license/
> zip -d mahout/examples/target/mahout-examples-0.8-SNAPSHOT-job.jar META-INF/LICENSE/
> Looks like as is mentioned in 
> mv target/maven-shared-archive-resources/META-INF/LICENSE target/maven-shared-archive-resources/META-INF/LICENSES
> works too.
> Can this get a permanent fix?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message