[
https://issues.apache.org/jira/browse/MAHOUT-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13672129#comment-13672129
]
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...
<excludes>
<exclude>org.apache.hadoop:hadoop-core</exclude>
<!-- 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. -->
<exclude>com.github.stephenc.high-scale-lib:high-scale-lib</exclude>
</excludes>
> Mac builds won't unjar
> ----------------------
>
> Key: MAHOUT-1126
> URL: https://issues.apache.org/jira/browse/MAHOUT-1126
> 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
> https://issues.apache.org/jira/browse/MAHOUT-780
> 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
> https://issues.apache.org/jira/browse/MAHOUT-780
> 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: http://www.atlassian.com/software/jira