You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2021/03/26 13:09:26 UTC

[camel-quarkus] 01/01: Move the staging repos to settings.xml

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

ppalaga pushed a commit to branch release/1.8.0
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit ff723c7159caf9d84eb5ab5e913063d715467d67
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Mar 26 11:56:37 2021 +0100

    Move the staging repos to settings.xml
---
 pom.xml      | 22 --------------------
 settings.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 22 deletions(-)

diff --git a/pom.xml b/pom.xml
index ec85f74..aa9692f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -248,28 +248,6 @@
 
     <repositories>
         <repository>
-            <id>central</id>
-            <name>Maven Central Repo</name>
-            <url>https://repo.maven.apache.org/maven2</url>
-            <snapshots>
-                <enabled>false</enabled>
-            </snapshots>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-        </repository>
-        <repository>
-            <id>apache.staging.camel</id>
-            <url>https://repository.apache.org/content/repositories/orgapachecamel-1302</url>
-            <name>Apache Camel 3.8.0 Staging Repo</name>
-            <snapshots>
-                <enabled>false</enabled>
-            </snapshots>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-        </repository>
-        <repository>
             <id>apache.snapshots</id>
             <url>https://repository.apache.org/snapshots/</url>
             <name>Apache Snapshot Repo</name>
diff --git a/settings.xml b/settings.xml
new file mode 100644
index 0000000..e3cbd19
--- /dev/null
+++ b/settings.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+                              http://maven.apache.org/xsd/settings-1.0.0.xsd">
+    <localRepository>/home/data/m2/repository</localRepository>
+
+
+    <profiles>
+        <profile>
+            <id>staging-repos</id>
+            <repositories>
+                <repository>
+                    <id>central</id>
+                    <name>Maven Central Repo</name>
+                    <url>https://repo.maven.apache.org/maven2</url>
+                    <snapshots>
+                        <enabled>false</enabled>
+                    </snapshots>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                </repository>
+                <repository>
+                    <id>apache.staging.camel</id>
+                    <url>https://repository.apache.org/content/repositories/orgapachecamel-1302</url>
+                    <name>Apache Camel 3.8.0 Staging Repo</name>
+                    <snapshots>
+                        <enabled>false</enabled>
+                    </snapshots>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                </repository>
+            </repositories>
+            <pluginRepositories>
+                <pluginRepository>
+                    <id>central</id>
+                    <name>Maven Central Repo</name>
+                    <url>https://repo.maven.apache.org/maven2</url>
+                    <snapshots>
+                        <enabled>false</enabled>
+                    </snapshots>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                </pluginRepository>
+                <pluginRepository>
+                    <id>apache.staging.camel</id>
+                    <url>https://repository.apache.org/content/repositories/orgapachecamel-1302</url>
+                    <name>Apache Camel 3.8.0 Staging Repo</name>
+                    <snapshots>
+                        <enabled>false</enabled>
+                    </snapshots>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                </pluginRepository>
+            </pluginRepositories>
+        </profile>
+    </profiles>
+
+    <activeProfiles>
+        <activeProfile>staging-repos</activeProfile>
+    </activeProfiles>
+</settings>