From 585000e2801f4e14cc5da6f1c74b4cdad78bd164 Mon Sep 17 00:00:00 2001 From: Lucifer Morningstar Date: Thu, 24 Feb 2022 02:08:16 +0530 Subject: [PATCH] Fix project and scm urls in child project POMs Maven's default behaviour is to append path and artifact id to parent project url for setting child project's url. But this is not helpful because these urls, for instance https://github.com/quarkusio/quarkus/bom/quarkus-bom end up in 404s. Similarly, the scm urls are broken. The right behaviour would most likely be to point to just https://github.com/quarkusio/quarkus/. Thankfully, Maven 3.6.1 introduced some attribute to set the child project's url to the project url of the parent without modifications. Therefore, set the child.project.url.inherit.append.path project attribute and various scm attributes to ensure the correct urls are generated. --- pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4558ef9b0de848..0cf5367678f524 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,8 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" + child.project.url.inherit.append.path="false"> 4.0.0 org.jboss @@ -35,7 +36,9 @@ - + https://github.com/quarkusio/quarkus scm:git:git@github.com:quarkusio/quarkus.git scm:git:git@github.com:quarkusio/quarkus.git