-
Notifications
You must be signed in to change notification settings - Fork 13
/
pom.xml
144 lines (139 loc) · 5.33 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?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-examples-parent</artifactId>
<properties>
<!-- There are some java classes under src/main/java used during test runtime (dmn-listener-quarkus for example) -->
<!-- We can not skip src/main/java module compilation -->
<maven.main.skip>false</maven.main.skip>
<!-- Fail build if there is any issue in tests. This is passed to maven-invoker-plugin -->
<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.quickstarts.zip}|${enforcer.test.type.scm.checkout}|${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-examples-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-examples-sources-zip-test</module>
</modules>
</profile>
<profile>
<id>kogito-examples-project-quickstarts-zip</id>
<activation>
<property>
<name>test.type</name>
<value>quickstarts-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-examples-quickstarts-zip-test</module>
</modules>
</profile>
<profile>
<id>kogito-examples-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-examples-project-sources-test</module>
</modules>
</profile>
<profile>
<id>kogito-examples-scm-checkout</id>
<activation>
<property>
<name>test.type</name>
<value>scm-checkout</value>
</property>
</activation>
<properties>
<!-- Invoker expecting sources.directory property to point at sources -->
<sources.directory>${sources.directory.module.scm.checkout}</sources.directory>
<!-- Needs to be provided upon running the mvn build -->
<sources.revision></sources.revision>
<sources.revision.type>branch</sources.revision.type>
</properties>
<modules>
<module>../run-tests-with-build-scm-checkout</module>
<module>kogito-examples-scm-checkout-test</module>
</modules>
</profile>
<profile>
<id>kogito-examples-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-examples-local-repo-test</module>
</modules>
</profile>
</profiles>
</project>