Skip to content

Commit 075ffc2

Browse files
authored
Fix incorrect URL in effective POM for Maven modules
1 parent 95197df commit 075ffc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<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"
3+
child.project.url.inherit.append.path="false">
4+
35
<modelVersion>4.0.0</modelVersion>
46

57
<groupId>net.bytebuddy</groupId>
@@ -151,7 +153,9 @@
151153
<url>https://github.com/raphw/byte-buddy/issues</url>
152154
</issueManagement>
153155

154-
<scm>
156+
<!-- These attributes specify that the URLs should be inherited by the modules as is, to avoid constructing
157+
invalid URLs, see also https://maven.apache.org/ref/3.9.9/maven-model-builder/index.html#inheritance-assembly -->
158+
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
155159
<connection>scm:git:${repository.url}</connection>
156160
<developerConnection>scm:git:${repository.url}</developerConnection>
157161
<url>${repository.url}</url>

0 commit comments

Comments
 (0)