To copy the files from a particular environment to target/classes pass the em.env user property on the command line.
Ex: mvn clean install -Dem.env=dev
This will copy the filtered contents of src/main/environments/dev into target/classes.
Document: