portkey-cloud / portkey

Live-coding the Cloud
144 stars 7 forks source link

Client project's dependency on asm/asm conflicts with org.ow2.asm/asm of portkey #6

Closed viesti closed 7 years ago

viesti commented 7 years ago

Not portkey specific actually, would probably happen in any other project that has dependencies that mix asm/asm and org.ow2.asm/asm but stating here if someone runs into this:

CompilerException java.lang.RuntimeException: Unable to find static field: ASM4 in interface org.objectweb.asm.Opcodes, compiling:(portkey/ouroboros.clj:62:9)

One fix is to declare portkey before the lib that depends on asm/asm in :dependenciesof client project and exclude asm/asm. This happened to me on a project using org.apache.hadoop/hadoop-core.