On a Mac, I got the following error attempting to use '!'
mvn groupId:artifactId:goal -P!profile-1
-bash: !profile: event not found
Doing the following works with the '-':
mvn groupId:artifactId:goal -P-profile1
Alternatively you can do:
mvn groupId:artifactId:goal -P\!profile1