Cannot deploy to jetty9x, RuntimeException: Error scanning file

Description

I have found that the issue might be related to including the wrong version of the org.ow2.asm:asm dependency.

It seems that cargo is including version 4.1 of asm library (see JettyArtifactResolver.java:259) but by looking into Jetty 9.2.7 maven dependencies it seems to use version 5.0.1 instead. See difference here:

JettyArtifactResolver.java

Maven dependencies

I replaced version 4.1 with 5.0.1 on my local maven repository and seems to work ok. The problem is that I cannot change the dependency on my maven pom.xml because is hardcoded inside JettyArtifactResolver class.