This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push: new bb44c5a0c chore(docs): maven local repository bb44c5a0c is described below commit bb44c5a0cd6a02e97d08c7c91ff21e6cf902e421 Author: Pasquale Congiusti <pasquale.congiu...@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].