attach the shaded artifact instead of replacing it. When embedding maven or using another p-c-d or any other lib, those classes will be duplicated in the classpath, wreacking havoc.