I have a project which I compile with maven. I have different profiles declared in pom.xml. For some of these profiles, I prefer building a war, and for other profiles I pre
I don't think you can.
Two alternatives I can think of:
I like the second approach better - a build server would probably build both, and a developer would use the proper profiles/settings to skip the unwanted type.