Skip to content

Commit 99da49f

Browse files
committed
Disable special inheritance handling in POM for url, scm, etc.
Maven inheritance assembly generates incorrect values for `url`, `scm`, etc. in POM. Hence, disabling it. Note that these values are used in many places, in particular, auto-generated SBOMs. [1] https://maven.apache.org/ref/3.9.4/maven-model-builder/#inheritance-assembly
1 parent 8bb72d9 commit 99da49f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
~ See the License for the specific language governing permissions and
1616
~ limitations under the License.
1717
-->
18-
<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 https://maven.apache.org/maven-v4_0_0.xsd">
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" child.project.url.inherit.append.path="false" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
1919

2020
<!-- ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██
2121
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██
@@ -273,7 +273,7 @@
273273

274274
</modules>
275275

276-
<scm>
276+
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
277277
<connection>scm:git:https://github.com/apache/logging-log4j2.git</connection>
278278
<developerConnection>scm:git:https://github.com/apache/logging-log4j2.git</developerConnection>
279279
<tag>2.x</tag>

0 commit comments

Comments
 (0)