-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jitpack example deployment fails #3207
Comments
Thanks for reporting. We should understand why this is failing. Would you mind having a look at the operator log trace? We also can get the reason why it failed looking at the Builder ( |
I've tested it successfully. I wonder if you may have some problem accessing https://jitpack.io repository url, reason why it could be failing when you use the dependency. Having a look at the logs would help troubleshooting, thanks. |
Hey, sorry I was away for a bit. Taking a look at the operator pod logs I think this is the relevant part: {"level":"info","ts":1650903512.8294797,"logger":"camel-k.maven.build","msg":"[INFO] Scanning for projects..."}
{"level":"info","ts":1650903513.3458402,"logger":"camel-k.maven.build","msg":"[INFO] "}
{"level":"info","ts":1650903513.3482604,"logger":"camel-k.maven.build","msg":"[INFO] ---------< org.apache.camel.k.integration:camel-k-integration >---------"}
{"level":"info","ts":1650903513.3494701,"logger":"camel-k.maven.build","msg":"[INFO] Building camel-k-integration 1.6.5"}
{"level":"info","ts":1650903513.351937,"logger":"camel-k.maven.build","msg":"[INFO] --------------------------------[ jar ]---------------------------------"}
{"level":"info","ts":1650903514.265848,"logger":"camel-k.maven.build","msg":"[INFO] Downloading from jitpack.io-c9jcjls7vdpc9ivpt9ng: https://jitpack.io/com/github/squakez/samplejp/master-SNAPSHOT/maven-metadata.xml"}
{"level":"info","ts":1650903514.9243386,"logger":"camel-k.maven.build","msg":"[WARNING] The POM for com.github.squakez:samplejp:jar:master-SNAPSHOT is missing, no dependency information available"}
{"level":"info","ts":1650903515.0476131,"logger":"camel-k.maven.build","msg":"[INFO] ------------------------------------------------------------------------"}
{"level":"info","ts":1650903515.0479498,"logger":"camel-k.maven.build","msg":"[INFO] BUILD FAILURE"}
{"level":"info","ts":1650903515.048796,"logger":"camel-k.maven.build","msg":"[INFO] ------------------------------------------------------------------------"}
{"level":"info","ts":1650903515.0502107,"logger":"camel-k.maven.build","msg":"[INFO] Total time: 2.237 s"}
{"level":"info","ts":1650903515.0508983,"logger":"camel-k.maven.build","msg":"[INFO] Finished at: 2022-04-25T16:18:35Z"}
{"level":"info","ts":1650903515.0517366,"logger":"camel-k.maven.build","msg":"[INFO] ------------------------------------------------------------------------"}
{"level":"info","ts":1650903515.0565495,"logger":"camel-k.maven.build","msg":"[ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.6.5: Failure to find com.github.squakez:samplejp:jar:master-SNAPSHOT in https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack.io-c9jcjls7vdpc9ivpt9ng has elapsed or updates are forced -> [Help 1]"}
{"level":"info","ts":1650903515.0567274,"logger":"camel-k.maven.build","msg":"[ERROR] "}
{"level":"info","ts":1650903515.057614,"logger":"camel-k.maven.build","msg":"[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch."}
{"level":"info","ts":1650903515.05837,"logger":"camel-k.maven.build","msg":"[ERROR] Re-run Maven using the -X switch to enable full debug logging."}
{"level":"info","ts":1650903515.058535,"logger":"camel-k.maven.build","msg":"[ERROR] "}
{"level":"info","ts":1650903515.059608,"logger":"camel-k.maven.build","msg":"[ERROR] For more information about the errors and possible solutions, please read the following articles:"}
{"level":"info","ts":1650903515.0606256,"logger":"camel-k.maven.build","msg":"[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException"}
{"level":"info","ts":1650903515.0733407,"logger":"camel-k.builder","msg":"step failed with error: failure while building project: exit status 1","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
{"level":"info","ts":1650903515.0733674,"logger":"camel-k.builder","msg":"dependencies: [camel:log camel:timer github:squakez/samplejp mvn:org.apache.camel.k:camel-k-runtime mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl]"} I'm Looking into this part: |
Thanks for the help @squakez, that was the issue. Publishing version 1.0.0 with |
I think the version you're using is affected by #2764 wich was fixed in versions >=1.7.0 - your workaround is fine until you upgrade to 1.7+ version. |
Hello,
I am trying to get this example linked from the documentation for jitpack working in openshift. I am running the command
kamel run Jitpack.java --dev -d github:squakez/samplejp
. I get the following result:I am pretty sure I'm doing something wrong with jitpack since changing the
Jitpack.java
file to exclude the dependency like so:runs as expected. Thanks for your help!
The text was updated successfully, but these errors were encountered: