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

stoty pushed a commit to branch 5.1
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/5.1 by this push:
     new ca19567085 PHOENIX-7628 Don't add Apache Snapshot Maven Repo by 
Default (#2262)
ca19567085 is described below

commit ca1956708520679988a32fecfc8447aa9529e8ec
Author: Istvan Toth <st...@apache.org>
AuthorDate: Tue Aug 5 07:02:00 2025 +0200

    PHOENIX-7628 Don't add Apache Snapshot Maven Repo by Default (#2262)
---
 pom.xml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/pom.xml b/pom.xml
index 7149bcbf81..f900c52ddc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1833,6 +1833,41 @@
         </plugins>
       </build>
     </profile>
+    <!-- Duplicate the functionality of MPOM-451 for our older ASF parent pom 
-->
+    <profile>
+      <id>dont-use-apache-snapshots</id>
+      <activation>
+        <property>
+          <name>!apache.snapshots</name>
+        </property>
+      </activation>
+      <repositories>
+        <repository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>
+          <id>apache.snapshots</id>
+          <name>Apache Snapshot Repository</name>
+          <url>https://repository.apache.org/snapshots</url>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <snapshots>
+            <enabled>false</enabled>
+          </snapshots>
+          <id>apache.snapshots</id>
+          <name>Apache Snapshot Repository</name>
+          <url>https://repository.apache.org/snapshots</url>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
     <!-- See BUILDING.md for profile selection-->
     <!-- The dependencies should be defined only in phoenix-core
     ,but maven doesn't seem to support that -->

Reply via email to