The snippet contents depend on the build type you have selected. The release build has no SNAPSHOT suffix.
A repository declaration was indeed missing in the release build snippet. It has been added now (just mavenCentral() instead of the explicit URL). Thanks!