You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/25 16:59:04 UTC

[GitHub] [camel-k] apupier opened a new issue #2175: Support additonal Maven repositories for `kamel local build`

apupier opened a new issue #2175:
URL: https://github.com/apache/camel-k/issues/2175


   it seems that `kamel local build` is not supporting additional Maven repositories.
   I tried:
   - modifying local .m2/settings.xml
   - modifying camel-k-maven-settings config map
   - providing --maven.repository parameter on command-line
   
   see https://camel.zulipchat.com/#narrow/stream/257299-camel-k/topic/Additional.20Maven.20repositories.20with.20kamel.20local.20build
   
   it is preventing from using snapshot versions of Camel K.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
astefanutti edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817861234


   I think the initial error is solved with using the `--maven-repository` option, and for some reasons, your local Maven repository is not having the latest versions, and I was about to suggest to clean it.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817669118


   I've been able to run `kamel local build` with the Apache snapshots repository using the `--maven-repository` option, e.g.:
   
   ```
   $ kamel local build --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots --integration-directory=test examples/rest/routes-rest.js
   ```
   
   Mind that it's ` --maven-repository`, not ` --maven.repository`, and that the repository must be declared with `@snapshots`, as documented in https://camel.apache.org/camel-k/latest/configuration/maven.html#_maven_settings.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817849107


   no failure when using a js file
   
   EDIT: I have same failure after cleaning my local .m2


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-818524358


   still in progress (issue on VS Code side currently) but the specific issue that I reported is solved so I'm closing it. Thanks for the help!


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier closed issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier closed issue #2175:
URL: https://github.com/apache/camel-k/issues/2175


   


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817861234


   I think the initial error is solved with using the `--maven-repository` option, and for some reasons, your local Maven repository is not having the latest versions, and was about to suggest to clean it.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
astefanutti edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817861234


   I think the initial error is solved with using the `--maven-repository` option, and for some reasons, your local Maven repository was not having the latest versions, and I was about to suggest to clean it.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817857626


   another try and it worked...
   
   ```
   (base) [apupier@linux camel-k]$ ./kamel local build --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots --integration-directory "/home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0" "/home/apupier/ws/camelk-test/Routing.java"
   ```


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817838995


   but we can notice that there is one less dependency which is not found
   ```'dependencies.dependency.version' for org.apache.camel.k:camel-k-runtime:jar is missing. @ line 44, column 17``` compared to what i[ reported initially](https://camel.zulipchat.com/#narrow/stream/257299-camel-k/topic/Additional.20Maven.20repositories.20with.20kamel.20local.20build)


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-818521858


   @apupier Did you get any other issues, or is it ok to close this?


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817838995


   but we can notice that there are two fewer dependencies which are not found
   ```
   Could not find artifact org.apache.camel.k:camel-k-runtime-bom:pom:1.7.0-SNAPSHOT @ line 22, column 19
   'dependencies.dependency.version' for org.apache.camel.k:camel-k-runtime:jar is missing. @ line 44, column 17
   ```
   compared to what i[ reported initially](https://camel.zulipchat.com/#narrow/stream/257299-camel-k/topic/Additional.20Maven.20repositories.20with.20kamel.20local.20build)


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817837874


   still not working for me:
   
   ```
   (base) [apupier@linux camel-k]$ ./kamel local build --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots --integration-directory "/home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0" "/home/apupier/ws/camelk-test/Routing.java"
   Modeline options have been loaded from source files
   Full command: kamel local build --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots --integration-directory /home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0 /home/apupier/ws/camelk-test/Routing.java --dependency=mvn:com.github.camel-tooling/camel-lsp-server 
   [ERROR] [ERROR] Some problems were encountered while processing the POMs:
   [ERROR] 'dependencies.dependency.version' for org.apache.camel.k:camel-k-loader-java:jar is missing. @ line 36, column 17
    @ 
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]   
   [ERROR]   The project org.apache.camel.k.integration:camel-k-integration:1.4.0-SNAPSHOT (/tmp/maven-751781982/pom.xml) has 1 error
   [ERROR]     'dependencies.dependency.version' for org.apache.camel.k:camel-k-loader-java:jar is missing. @ line 36, column 17
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
   failure while building project: exit status 1
   ```


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817849107


   no failure when using a js file


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817838995


   but we can notice that there is one less dependency which is not found
   ```'dependencies.dependency.version' for org.apache.camel.k:camel-k-runtime:jar is missing. @ line 44, column 17``` compared to what i reported initially


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2175: Support additonal Maven repositories for `kamel local build`

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2175:
URL: https://github.com/apache/camel-k/issues/2175#issuecomment-817849107


   failing also when using a js file


-- 
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:
users@infra.apache.org