Skip to content

Commit

Permalink
Disable special inheritance handling in POM for url, scm, etc.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vy committed Oct 20, 2023
1 parent 8bb72d9 commit 99da49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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">
<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">

<!-- ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██
Expand Down Expand Up @@ -273,7 +273,7 @@

</modules>

<scm>
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
<connection>scm:git:https:/apache/logging-log4j2.git</connection>
<developerConnection>scm:git:https:/apache/logging-log4j2.git</developerConnection>
<tag>2.x</tag>
Expand Down

0 comments on commit 99da49f

Please sign in to comment.