I've got a project, name it project1
and this project contains one pom.xml
. Now, what I want to achieve is, that I want to specify two different "Profiles" in Eclipse when I run a maven build on the project and then each of the two profiles should use it's own dependencies. For example in build phase "build_project1_dependency1"
it should use the following dependency:
<dependency>
<groupId>com.example</groupId>
<artifactId>ProjectX</artifactId>
<version>1.0.11</version>
</dependency>
and in the second build phase profile called "build_project1_dependency2"
it should use the following dependency instead of the first one:
<dependency>
<groupId>com.example</groupId>
<artifactId>ProjectX</artifactId>
<version>1.0.12</version>
</dependency>