How can i make maven build dependent on parameters? I want to do some changes to configuration files when building project for clustered environment. So if usual build is something like mvn clean package then when building for cluster i want to run smth like mvn clean package cluster and make configuration changes in this case. Btw, my main pom.xml consists of just several included modules to which i need to pass this parameter so consider this as well.
Asked
Active
Viewed 111 times
0
-
What do you mean by included modules and parameter passing to those modules ? – khmarbaise Dec 14 '12 at 14:18
-
2looks a bit like a task for profiles - http://maven.apache.org/guides/introduction/introduction-to-profiles.html – SpaceTrucker Dec 14 '12 at 20:42
-
See my answer: [How to get a command-line property to overwrite a maven property](http://stackoverflow.com/a/13709976/651140) – Andrzej Jozwik Dec 14 '12 at 22:16
-
Yeap, i did it with profiles. Thanks SpaceTrucker! – mykola Dec 19 '12 at 15:41