What is the best way to auto maintain snapshots with classifier?

Currently we’re using 3 code branches, corresponding to three environments: dev, test, release. we defined different classifier for each code branch, so that the ‘dev’ jars will never enter the ‘test’ environment.