You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/10/20 13:40:49 UTC

[logging-log4j-tools] 01/02: Disable special inheritance handling in POM for `url`, `scm`, etc.

This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git

commit 8de79a3c31631f47d286a6a52fa639df934360e5
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Fri Oct 20 15:36:21 2023 +0200

    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
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4201c92..cb657b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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 http://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 http://maven.apache.org/maven-v4_0_0.xsd">
 
   <!-- ██     ██  █████  ██████  ███    ██ ██ ███    ██  ██████  ██
        ██     ██ ██   ██ ██   ██ ████   ██ ██ ████   ██ ██       ██
@@ -89,7 +89,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:git@github.com:apache/logging-log4j-tools.git</connection>
     <developerConnection>scm:git:git@github.com:apache/logging-log4j-tools.git</developerConnection>
     <tag>HEAD</tag>