target must be dir not jar