Hi all, I sent this earlier and can someone please tell me if there is any way to do this ?
Thanks, Ravi Hi all, I am facing a situation where i need to iterate through (or build ) the same maven projects depending upon the list of active profiles. To be precise, we run some tests (testNG through the maven surefire plugin) against a database and i need a way to run the tests against different databases based on the list of active profiles or through some other mechanism. I tried having a seperate maven profile for each database type and pointing to a different properties file in each profile. But i still could not get to the point where i can iterate through the build (or run the tests) depending upon the list of active profiles. Precisely, i want to have a setup similar to the following: mvn -Pmysql test & mvn -Poracle test - should run the tests against a mysql database and an oracle database respectively(which i could do ) mvn -Pmysql,oracle test - This should run the tests against both mysql and oracle for which i need a solution. Can somebody suggest something for this ? PS: I dont want to change the number of mvn commands that i issue. The build machine always runs "mvn test" once and we provide a list of active profiles depending on the requirement. Regards, Ravi
