-
Notifications
You must be signed in to change notification settings - Fork 13
/
pom.xml
103 lines (99 loc) · 3.65 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>run-tests-with-build</artifactId>
<groupId>org.kie</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>run-tests-with-build-kogito-runtimes-parent</artifactId>
<properties>
<maven.main.skip>false</maven.main.skip>
<maven.test.failure.ignore>false</maven.test.failure.ignore>
<!-- just for enforcer activation section of profiles does not interpolate properties -->
<activation.property.name>test.type</activation.property.name>
<enforcer.regex.activation.property>^(${enforcer.test.type.sources.zip}|${enforcer.test.type.project.sources}|${enforcer.test.type.local.repo})$</enforcer.regex.activation.property>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-property</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules combine.children="append">
<requireProperty>
<property>${activation.property.name}</property>
<message>Property ${activation.property.name} is not set!</message>
<regex>${enforcer.regex.activation.property}</regex>
<regexMessage>Property ${activation.property.name} does not contain expected value
${enforcer.regex.activation.property}.</regexMessage>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>kogito-runtimes-sources-zip</id>
<activation>
<property>
<name>test.type</name>
<value>sources-zip</value>
</property>
</activation>
<properties>
<!-- Invoker expecting sources.directory property to point at sources -->
<sources.directory>${sources.directory.module.sources.download}</sources.directory>
</properties>
<modules>
<module>../run-tests-with-build-sources-zip-download</module>
<module>kogito-runtimes-sources-zip-test</module>
</modules>
</profile>
<profile>
<id>kogito-runtimes-project-sources</id>
<activation>
<property>
<name>test.type</name>
<value>project-sources</value>
</property>
</activation>
<properties>
<!-- Invoker expecting sources.directory property to point at sources -->
<sources.directory>${sources.directory.module.project.sources.dependency.get}</sources.directory>
</properties>
<modules>
<module>../run-tests-with-build-project-sources-dependency-get</module>
<module>kogito-runtimes-project-sources-test</module>
</modules>
</profile>
<profile>
<id>kogito-runtimes-local-repo</id>
<activation>
<property>
<name>test.type</name>
<value>local-repo</value>
</property>
</activation>
<properties>
<sources.directory>${sources.directory.local.repo}</sources.directory>
</properties>
<modules>
<module>kogito-runtimes-local-repo-test</module>
</modules>
</profile>
</profiles>
</project>