|
39 | 39 | <ajJavaTarget>1.8</ajJavaTarget> |
40 | 40 | <ajJavaCompilance>1.8</ajJavaCompilance> |
41 | 41 | <cbi-version>1.5.4</cbi-version> |
42 | | - <buildUrl>file:/${user.dir}</buildUrl> |
| 42 | + <buildUrl>file://${maven.multiModuleProjectDirectory}</buildUrl> <!-- overridden by unix-build-url / windows-build-url profiles --> |
43 | 43 | </properties> |
44 | 44 | <prerequisites> |
45 | 45 | <maven>3.9.0</maven> |
|
215 | 215 | <plugin> |
216 | 216 | <groupId>org.codehaus.mojo</groupId> |
217 | 217 | <artifactId>build-helper-maven-plugin</artifactId> |
218 | | - <version>3.0.0</version> |
| 218 | + <version>3.6.0</version> |
219 | 219 | </plugin> |
220 | 220 | <plugin> |
221 | 221 | <groupId>org.codehaus.mojo</groupId> |
|
225 | 225 | </plugins> |
226 | 226 | </pluginManagement> |
227 | 227 | <plugins> |
| 228 | + <plugin> |
| 229 | + <groupId>org.codehaus.mojo</groupId> |
| 230 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 231 | + <executions> |
| 232 | + <execution> |
| 233 | + <id>set-build-url</id> |
| 234 | + <phase>initialize</phase> |
| 235 | + <goals> |
| 236 | + <goal>regex-property</goal> |
| 237 | + </goals> |
| 238 | + <configuration> |
| 239 | + <name>buildUrl</name> |
| 240 | + <value>${buildUrl}</value> |
| 241 | + <regex>\\</regex> |
| 242 | + <replacement>/</replacement> |
| 243 | + <failIfNoMatch>false</failIfNoMatch> |
| 244 | + </configuration> |
| 245 | + </execution> |
| 246 | + </executions> |
| 247 | + </plugin> |
228 | 248 | <plugin> |
229 | 249 | <groupId>org.eclipse.dash</groupId> |
230 | 250 | <artifactId>license-tool-plugin</artifactId> |
|
290 | 310 | </plugins> |
291 | 311 | </build> |
292 | 312 | <profiles> |
| 313 | + <profile> |
| 314 | + <!-- On Unix/Linux/macOS the path starts with /, so file:// + /path = file:///path --> |
| 315 | + <id>unix-build-url</id> |
| 316 | + <activation> |
| 317 | + <os><family>unix</family></os> |
| 318 | + </activation> |
| 319 | + <properties> |
| 320 | + <buildUrl>file://${maven.multiModuleProjectDirectory}</buildUrl> |
| 321 | + </properties> |
| 322 | + </profile> |
| 323 | + <profile> |
| 324 | + <!-- On Windows the path starts with a drive letter, so file:/// + C:/path = file:///C:/path --> |
| 325 | + <id>windows-build-url</id> |
| 326 | + <activation> |
| 327 | + <os><family>windows</family></os> |
| 328 | + </activation> |
| 329 | + <properties> |
| 330 | + <buildUrl>file:///${maven.multiModuleProjectDirectory}</buildUrl> |
| 331 | + </properties> |
| 332 | + </profile> |
293 | 333 | <profile> |
294 | 334 | <id>update-version</id> |
295 | 335 | <modules> |
|
0 commit comments