Very bad answer.
In fact, you should specify the packet patch, not the groupId and artifactId. They may or may not match. Nothing will work when specifying packages for scanning in this way.