For Eclipse Users.
If you have a Run Configuration that does clean package for example.
In the Run Configuration panel there is a JRE tab where you can specify against which runtime it should run.
Note that this configuration overrides whatever is in the pom.xml.