Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles?
e.g.
mvn -P debug
mvn -P release
I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the same interfaces.
Best Answer
To quote the Maven documentation on this:
(Emphasis is mine)
Just put the dependency for the
release
profile inside the profile declaration itself and do the same fordebug
.