I work with Intellij and this configuration in pom.xml worked perfectly:
solution image
Then I synchronized the changes with maven and ran "clean" and "install" to work normally