modules/plugins/cassandra/pom.xml | 48 ++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 14 deletions(-)
New commits: commit 464a64330230fc32803efdb452d14745c4cc9460 Author: Stefan Negrea snegrea@redhat.com Date: Wed Sep 18 14:43:21 2013 -0500
Move test dependencies that do not get build when test compilation is skipped to a special profile.
diff --git a/modules/plugins/cassandra/pom.xml b/modules/plugins/cassandra/pom.xml index fd411a3..35cd506 100644 --- a/modules/plugins/cassandra/pom.xml +++ b/modules/plugins/cassandra/pom.xml @@ -43,20 +43,6 @@ <version>${project.version}</version> <scope>provided</scope> </dependency> - <dependency> - <groupId>${rhq.groupId}</groupId> - <artifactId>rhq-core-plugin-test-api</artifactId> - <version>${project.version}</version> - <type>pom</type> - <scope>test</scope> - </dependency> - - <dependency> - <groupId>${rhq.groupId}</groupId> - <artifactId>rhq-core-plugin-test-util</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> </dependencies>
<build> @@ -169,6 +155,40 @@ </build>
<profiles> + + <profile> + <!-- + This profile has been created to avoid unnecessary resolution of test dependencies during a build that + does not run, compile or need tests. + More test dependencies are to be moved here if the set of sub-dependencies is complex, references project + test jars, or conflicts with changing the container version. + --> + <id>test.dependencies</id> + <activation> + <property> + <name>maven.test.skip</name> + <value>!true</value> + </property> + </activation> + + <dependencies> + <dependency> + <groupId>${rhq.groupId}</groupId> + <artifactId>rhq-core-plugin-test-api</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>${rhq.groupId}</groupId> + <artifactId>rhq-core-plugin-test-util</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + <profile> <id>dev</id>
rhq-commits@lists.fedorahosted.org