gtata007 opened a new issue, #3961:
URL: https://github.com/apache/camel-k/issues/3961
Hello Everyone,
While trying to run a java DSL sample program on OpenShift(CamelK 1.6.1) .
The program is trying to call a webservice invocation using cxf dependencies
and it is failing at the Build Submitted phase. As per the operator logs, it
shows us that it is unable to download the referenced CXF jars. I have tried to
run the integration using the following command but it doesn't work.
**VERSION**
red-hat-camel-k-operator.v1.6.3
Camel K Client 1.6.1
**Command to produce the Issue**
kamel run TestWeb.java --dev -t logging.level=DEBUG
**Sample Program**
// camel-k: language=java
// camel-k: dependency=mvn:org.apache.camel:camel-cxf:3.9.0
import org.apache.camel.builder.RouteBuilder;
public class TestWeb extends RouteBuilder {
@Override
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
.to("log:info");
}
}
**Error Log:**
{"level":"error","ts":1672787680.4133232,"logger":"camel-k.maven.build","msg":"[ERROR]
Some problems were encountered while processing the POMs:\n[ERROR]
'dependencies.dependency.artifactId' for
org.apache.camel.quarkus:camel-quarkus-cxf:3.9.0:jar with value
'camel-quarkus-cxf:3.9.0' does not match a valid id pattern. @ line 34, column
19\n[ERROR] 'dependencies.dependency.version' for
org.apache.camel.quarkus:camel-quarkus-cxf:3.9.0:jar is missing. @ line 32,
column 17\n[ERROR] 'dependencies.dependency.version' for
org.apache.camel:camel-cxf:jar is missing. @ line 60, column 17\n @
","stacktrace":"github.com/apache/camel-k/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/pkg/util/maven.normalizeLog\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_log.go:62\ngithub.com/apache/camel-k/pkg/util/maven.(*Command).Do\n\tgithub.com/apache/camel-k/pkg/util/maven/maven_command.go:140\ngithub.com/apache/camel-k/pkg/builder.BuildQuark
usRunnerCommon\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:189\ngithub.com/apache/camel-k/pkg/builder.buildQuarkusRunner\n\tgithub.com/apache/camel-k/pkg/builder/quarkus.go:163\ngithub.com/apache/camel-k/pkg/builder.(*builderStep).execute\n\tgithub.com/apache/camel-k/pkg/builder/steps.go:46\ngithub.com/apache/camel-k/pkg/builder.(*builderTask).Do\n\tgithub.com/apache/camel-k/pkg/builder/builder.go:125\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:146"}
I am following the documentation for the cxf.
**https://camel.apache.org/components/3.20.x/cxf-component.html**
Best Regards,
Guru
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]