|
43 | 43 | <reactor-test.version>3.5.1</reactor-test.version>
|
44 | 44 | <!-- By default skip the dockerization step. Only activate if necessary -->
|
45 | 45 | <skipDockerBuild>true</skipDockerBuild>
|
| 46 | + <skipITs>${skipTests}</skipITs> |
| 47 | + <skipTests>false</skipTests> |
| 48 | + <skipUTs>${skipTests}</skipUTs> |
46 | 49 | <!-- We're forcing this version temporarily to fix CVE-2022-1471-->
|
47 | 50 | <snakeyaml.version>2.0</snakeyaml.version>
|
48 | 51 | <source.disabled>true</source.disabled>
|
|
74 | 77 | <artifactId>maven-dependency-plugin</artifactId>
|
75 | 78 | <version>3.4.0</version>
|
76 | 79 | </plugin>
|
| 80 | + <plugin> |
| 81 | + <groupId>org.codehaus.mojo</groupId> |
| 82 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 83 | + <version>3.3.0</version> |
| 84 | + <executions> |
| 85 | + <execution> |
| 86 | + <id>add-test-source</id> |
| 87 | + <goals> |
| 88 | + <goal>add-test-source</goal> |
| 89 | + </goals> |
| 90 | + <phase>generate-test-sources</phase> |
| 91 | + <configuration> |
| 92 | + <sources> |
| 93 | + <source>src/test/java</source> |
| 94 | + <!-- Default test directory --> |
| 95 | + <source>src/test/it</source> |
| 96 | + <!-- Additional test directory --> |
| 97 | + <source>src/test/utils</source> |
| 98 | + <!-- Another additional directory --> |
| 99 | + </sources> |
| 100 | + </configuration> |
| 101 | + </execution> |
| 102 | + </executions> |
| 103 | + </plugin> |
77 | 104 | <plugin>
|
78 | 105 | <groupId>org.apache.maven.plugins</groupId>
|
79 | 106 | <artifactId>maven-surefire-plugin</artifactId>
|
|
84 | 111 | <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
|
85 | 112 | --add-opens java.base/java.time=ALL-UNNAMED
|
86 | 113 | --add-opens java.base/java.util=ALL-UNNAMED</argLine>
|
| 114 | + <testSourceDirectory>src/test/java</testSourceDirectory> |
| 115 | + <skipTests>${skipUTs}</skipTests> |
| 116 | + </configuration> |
| 117 | + <dependencies> |
| 118 | + <dependency> |
| 119 | + <groupId>org.junit.jupiter</groupId> |
| 120 | + <artifactId>junit-jupiter-engine</artifactId> |
| 121 | + <version>5.6.2</version> |
| 122 | + <exclusions> |
| 123 | + <exclusion> |
| 124 | + <groupId>org.junit.platform</groupId> |
| 125 | + <artifactId>junit-platform-commons</artifactId> |
| 126 | + </exclusion> |
| 127 | + </exclusions> |
| 128 | + </dependency> |
| 129 | + </dependencies> |
| 130 | + </plugin> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 134 | + <version>3.0.0-M5</version> |
| 135 | + <configuration> |
| 136 | + <printSummary>true</printSummary> |
| 137 | + <!-- Allow JUnit to access the test classes --> |
| 138 | + <argLine>-ea |
| 139 | + --add-opens java.base/java.lang=ALL-UNNAMED |
| 140 | + --add-opens java.base/java.time=ALL-UNNAMED |
| 141 | + --add-opens java.base/java.util=ALL-UNNAMED</argLine> |
| 142 | + <systemPropertyVariables> |
| 143 | + <pf4j.pluginsDir>../dist/plugins</pf4j.pluginsDir> |
| 144 | + <!-- Specify plugin directory --> |
| 145 | + </systemPropertyVariables> |
| 146 | + <testSourceDirectory>src/test/it</testSourceDirectory> |
| 147 | + <skipITs>${skipITs}</skipITs> |
| 148 | + <!-- Property for skipping integration tests --> |
87 | 149 | </configuration>
|
88 | 150 | <dependencies>
|
89 | 151 | <dependency>
|
|
0 commit comments