More problems with META-INF/licenses in 0.9.2 #93

Closed
ghost opened this Issue Sep 8, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Sep 8, 2013

Follow up on #90.

libraryDependencies ++= Seq(
  ...
  "org.apache.avro" % "avro-tools" % "1.7.5"
)

results in:

[warn] Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.base64.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.base64.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.commons-logging.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.commons-logging.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.felix.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.felix.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.jboss-logging.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.jboss-logging.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.jsr166y.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.jsr166y.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.jzlib.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.jzlib.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.log4j.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.log4j.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.protobuf.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.protobuf.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.slf4j.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.slf4j.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.
[warn] Error extracting zip entry 'META-INF/license/LICENSE.webbit.txt' to '/Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license/LICENSE.webbit.txt': java.lang.RuntimeException: Could not create directory /Users/pfsnivel/random-event/target/scala-2.9.3/cache/default-37b4dd/global/assembly/e17360b692320eed93bc46a0247d67cdca5d0863_620010296525583cb6484634d3f776a74cf446c6/META-INF/license: file exists and is not a directory.

This actually seems like the same issue as before, but must be different in some way I can't identify.

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Sep 8, 2013

Member

This works as designed. The point of the 0.9.2 is to try-catch out of failed extraction.
As long as your HFS+ volume is configured to be case insensitive, it will not be able to extract META-INF/license/LICENSE.base64.txt because there's a file named META-INF/LICENSE already. 0.9.1 used to blow up at this stage. 0.9.2 displays the warning and moves on to the next zip entry. A possible workaround: Get a vm with linux on it :)

Member

eed3si9n commented Sep 8, 2013

This works as designed. The point of the 0.9.2 is to try-catch out of failed extraction.
As long as your HFS+ volume is configured to be case insensitive, it will not be able to extract META-INF/license/LICENSE.base64.txt because there's a file named META-INF/LICENSE already. 0.9.1 used to blow up at this stage. 0.9.2 displays the warning and moves on to the next zip entry. A possible workaround: Get a vm with linux on it :)

@eed3si9n eed3si9n closed this Sep 8, 2013

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 9, 2013

Ah, my mistake: you're right, these were warnings. An error due to conflicting .class files prevented the assembly from being created. A little excludedJars work and it works fine. Thanks!

ghost commented Sep 9, 2013

Ah, my mistake: you're right, these were warnings. An error due to conflicting .class files prevented the assembly from being created. A little excludedJars work and it works fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment