We have three different maven2 profiles: prod, dev and test. One should be able to build with either one of those three profiles, or without any profile. In other words, following commands are acceptable:
maven install maven -Pdev install maven -Ptest install maven -Pprod install
In case someone writes for example maven -Ppord install, the build must fail. Is this possible to do?
P.s. I'm aware of http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html but it seems that with require property it would not be possible to allow building without profile.