You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/06/01 10:47:13 UTC

[camel-k] 01/01: chore(docs): maven local repository

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

pcongiusti pushed a commit to branch squakez-patch-1
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 6f53ab2f07a6ca9cadab7ab2c2f10c607b078890
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Wed Jun 1 12:47:07 2022 +0200

    chore(docs): maven local repository
    
    Explain how to setup the local maven repository.
---
 .../ROOT/pages/contributing/local-development.adoc      | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/contributing/local-development.adoc b/docs/modules/ROOT/pages/contributing/local-development.adoc
index 547b2295b..f2774ea01 100644
--- a/docs/modules/ROOT/pages/contributing/local-development.adoc
+++ b/docs/modules/ROOT/pages/contributing/local-development.adoc
@@ -65,6 +65,21 @@ Camel K integrations are based on https://github.com/apache/camel-k-runtime[Came
 ./kamel install --skip-operator-setup -n operator-test --registry localhost:5000 --force --runtime-version $version
 ----
 
-The `$version` variable must be replaced with the version you are building. For example, `1.3.1-SNAPSHOT`. With these instructions, the operator will pick up and use the snapshot version you have released locally.
+The `$version` variable must be replaced with the version you are building. For example, `1.3.1-SNAPSHOT`. With these instructions, the operator will pick up and use the snapshot version you have released locally. In order to use the local maven repository, you will also need to edit your IntegrationPlatform as follow:
+----
+$ k edit ip -n operator-test
+
+...
+  spec:
+    build:
+      maven:
+        cliOptions:
+        - -V
+        localRepository: /home/user/.m2/repository
+        settings: {}
+...
+----
+pointing the `localRepository` where your local maven is storing the artifacts (it will look for the camel-k-runtime dependencies there).
+
 
 Alternatively, if no local registry is available, you can use another type of registry as explained in xref:installation/registry/registry.adoc[the Registry section].