astefanutti commented on a change in pull request #717: Allow to provide custom 
settings.xml
URL: https://github.com/apache/camel-k/pull/717#discussion_r289414536
 
 

 ##########
 File path: README.adoc
 ##########
 @@ -156,49 +156,50 @@ As example if you want to change the queue size of the 
seda component, you can u
 camel.component.seda.queueSize = 10
 ```
 
-==== Configure additional maven repositories
-
-Additional maven repositories can be defined at platform installation time or 
at integration/context build time:
+==== Configure maven settings
 
+Maven settings can be configured by providing a custom settings.xml through a 
CaonfigMap or secret.
+The source for maven setttings can be configuired using either the `kamel` cli 
at installation time or by editing Camel K's IntegrationPlatform:
 
+- cli:
++
+.Syntax
 [source]
 ----
-kamel cmd --repository http://repo1.my-company.com --repository 
http://repo2.my-company.com
+kamel install --maven-settings=configmap|secret:name[/key]
 ----
-
-A repository url follow conventions used to configure additional repositories 
in https://karaf.apache.org[_Apache Karaf_] so it can be appended with zero or 
more of the following flags:
-
-* **@snapshots**: the repository contains snapshots
-* **@noreleases**: the repository does not contain any released artifacts
-* **@id=repository.id**: the id for the repository
-
++
+.Example
 [source]
 ----
-kamel install --repository 
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases
+kamel cmd --maven-settings=configmap:maven-settings/settings.xml
 ----
 
-This results in:
-
-[source,xml]
+- IntegrationPlatform:
++
+[source,yaml]
 ----
-<repositories>
-  <repository>
-    <id>apache</id>
-    <url>http://repository.apache.org/content/groups/snapshots-group</url>
-    <snapshots>
-      <enabled>true</enabled>
-    </snapshots>
-    <releases>
-      <enabled>false</enabled>
-    </releases>
-  </repository>
-</repositories>
+apiVersion: camel.apache.org/v1alpha1
+kind: IntegrationPlatform
+metadata:
+  labels:
+    app: camel-k
+  name: camel-k
+spec:
+  build:
+    maven:
+      settings:
+        configMapKeyRef:
+          key: settings.xml
+          name: maven-settings
 ----
 
-[NOTE]
-====
-The final repositories list is the sum of the repositories defined on the 
resource (integration/context) and the platform ones
-====
+To quickly create a config map you can use the following command:
+
+[source]
+----
+kubectl create configmap maven-settings --from-file=settigns.xml
 
 Review comment:
   settigns.xml -> settings.xml

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to