Very new to maven. I have a pom file that I can use to do a build and deploy of my j2ee project and its working fine. (using maven 3).
I was wondering how to set up two different deployment scenario's in the same pom - one to build and deploy in my dev environment and one to build and deploy to a test environment.
The only differences between the two (for now) will be:
dev-build does NOT do an SCM checkout dev-build deploys to tomcat server A
test build does do an SCM checkout test build deploys to tomcat server B
What mechanisms in maven are best to use for creating two different deployment scenarios in this way. I've seen profiles mentioned - is this what I should be using - and if profiles is the answer how do I, for example, include an scm checkout for one profile but not for the other.
Thanks for any replies.