I have two projects, project A depends on project B, so as a rule, I will have the following section in my project A / pom.xml:
<dependency> <artifactId>projectB</artifactId> <groupId>blabla</groupId> <version>version1</version> </dependency>
What I'm trying to achieve is very straightforward if the maven profile does something like this to me:
if(profileA) { <version>version1</version> } else { <version>version2</version> }
source share