Fixing the classpath and the dependency scope