summaryrefslogtreecommitdiffstats
path: root/participant
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2021-09-15 12:07:01 +0100
committerliamfallon <liam.fallon@est.tech>2021-09-15 12:07:06 +0100
commitd8a77c8c154573c58bef23a161c6cd2cc5e258df (patch)
tree54ce440067a1ce85d7d9c68c5407d9b851c19fbb /participant
parentf1fa71ddf3c324305ab068a9fd5e7075b7e2caf7 (diff)
Fix staging error, remove tests jar dependency
We are skipping tests in staging jobs so the policy-clamp-common tests jar is not staged. This commit introduces profiles to avoid a dependency error in staging jobs for that jar. Issue-ID: POLICY-3587 Change-Id: I1b893fa1cbfd5da38272b531cc7f1130421a5cc6 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'participant')
-rw-r--r--participant/pom.xml51
1 files changed, 43 insertions, 8 deletions
diff --git a/participant/pom.xml b/participant/pom.xml
index 015308bbe..3545b9dda 100644
--- a/participant/pom.xml
+++ b/participant/pom.xml
@@ -40,6 +40,49 @@
<module>participant-impl</module>
</modules>
+ <profiles>
+ <!-- These profiles are required because the tests jar from policy-clamp-common is not available in staging
+ Jenkins jobs -->
+ <profile>
+ <id>ExcludeTestJar1</id>
+ <activation>
+ <property>
+ <name>maven.test.skip</name>
+ <value>false</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.policy.clamp</groupId>
+ <artifactId>policy-clamp-common</artifactId>
+ <classifier>tests</classifier>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>ExcludeTestJar2</id>
+ <activation>
+ <property>
+ <name>skipTests</name>
+ <value>false</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.policy.clamp</groupId>
+ <artifactId>policy-clamp-common</artifactId>
+ <classifier>tests</classifier>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
<dependencies>
<dependency>
<groupId>org.onap.policy.clamp</groupId>
@@ -51,14 +94,6 @@
<artifactId>policy-clamp-models</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.onap.policy.clamp</groupId>
- <artifactId>policy-clamp-common</artifactId>
- <classifier>tests</classifier>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>