You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2021/05/05 04:59:18 UTC

[karaf] branch karaf-4.2.x updated: [KARAF-7132] Use maven properties in scm and distributionManagement (easier for the fork)

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

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new 865ad3b  [KARAF-7132] Use maven properties in scm and distributionManagement (easier for the fork)
865ad3b is described below

commit 865ad3b4d154ced0135761509b0a5e4d5d041e32
Author: jbonofre <jb...@apache.org>
AuthorDate: Tue May 4 17:17:35 2021 +0200

    [KARAF-7132] Use maven properties in scm and distributionManagement (easier for the fork)
    
    (cherry picked from commit caa839ef71123199b81b98e138d426461f3cb61a)
---
 pom.xml | 33 ++++++++++++++++++++++++++++-----
 1 file changed, 28 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 81f5d47..678fc51 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,11 +82,23 @@
     </modules>
 
     <scm>
-        <connection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</connection>
-        <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</developerConnection>
-        <url>https://gitbox.apache.org/repos/asf?p=karaf.git;a=summary</url>
-      <tag>HEAD</tag>
-  </scm>
+        <connection>${scm.connection}</connection>
+        <developerConnection>${scm.developerConnection}</developerConnection>
+        <url>${scm.url}</url>
+    </scm>
+
+    <distributionManagement>
+        <repository>
+            <id>${distributionManagement.release.id}</id>
+            <name>${distributionManagement.release.name}</name>
+            <url>${distributionManagement.release.url}</url>
+        </repository>
+        <snapshotRepository>
+            <id>${distributionManagement.snapshot.id}</id>
+            <name>${distributionManagement.snapshot.name}</name>
+            <url>${distributionManagement.snapshot.url}</url>
+        </snapshotRepository>
+    </distributionManagement>
 
     <issueManagement>
         <system>jira</system>
@@ -138,6 +150,17 @@
     </developers>
 
     <properties>
+        <scm.connection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</scm.connection>
+        <scm.developerConnection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</scm.developerConnection>
+        <scm.url>https://gitbox.apache.org/repos/asf?p=karaf.git;a=summary</scm.url>
+
+        <distributionManagement.release.id>apache.releases.https</distributionManagement.release.id>
+        <distributionManagement.release.name>Apache Release Distribution Repository</distributionManagement.release.name>
+        <distributionManagement.release.url>https://repository.apache.org/service/local/staging/deploy/maven2</distributionManagement.release.url>
+        <distributionManagement.snapshot.id>apache.snapshots.https</distributionManagement.snapshot.id>
+        <distributionManagement.snapshot.name>Apache Development Snapshot Repository</distributionManagement.snapshot.name>
+        <distributionManagement.snapshot.url>https://repository.apache.org/content/repositories/snapshots</distributionManagement.snapshot.url>
+
         <activemq.version>5.15.11</activemq.version>
         <aopalliance.bundle.version>1.0_6</aopalliance.bundle.version>
         <aspectj.bundle.version>1.9.5_1</aspectj.bundle.version>