Project: mule
Issue MULE-7807: Running unit tests on clean working directory with an empty repository fails because missing jar
{code} git co git@github.com:mulesoft/mule.git cd mule mvn -Punit -Dmule.test.timeoutSecs=30 {code} This fails because unpacking embedded distribution dependencies is binded to generate-sources phase, but jars are still not available (because we are running test phase). Apparently Maven dependency plugin when jar is not available and has to resolve the dependency, resolves the artifact file as the classes directory for the dependency, so every file in that module is available to the current module. As we are trying to unpack it fails because the classes directory is not a jar file.
Story points: 3