Camel Quarkus Example not working

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Camel Quarkus Example not working

imranrazakhan
This post was updated on .
I followed the instruction mentioned on
https://camel.apache.org/camel-quarkus/latest/first-steps.html to run
simple example, but its throwing error while running

$ mvn clean compile quarkus:dev

Error:

[INFO] Scanning for projects...
[INFO]
[INFO] -----< org.apache.camel.quarkus:camel-quarkus-examples-rest-json >------
[INFO] Building Camel Quarkus :: Examples :: Rest Json 1.0.0-M2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ camel-quarkus-examples-rest-json ---
[INFO]
[INFO] --- directory-maven-plugin:0.3.1:highest-basedir (directories) @ camel-quarkus-examples-rest-json ---
[INFO] Highest basedir set to: /Users/imran/testcamel/rest-json
[INFO]
[INFO] --- groovy-maven-plugin:2.1.1:execute (sanity-checks) @ camel-quarkus-examples-rest-json ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.654 s
[INFO] Finished at: 2020-01-02T00:51:04+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (sanity-checks) on project camel-quarkus-examples-rest-json: Execution sanity-checks of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Impossible to read the text content from file:/Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy: /Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy (No such file or directory) -> [Help 1]
[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/PluginExecutionException

Version Details:

$ mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3/libexec
Java version: 1.8.0_121, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"

Reply | Threaded
Open this post in threaded view
|

Re: Camel Quarkus Example not working

Tom Donohue
Hey Imran

What does the top of your rest-json POM look like?

If you follow the steps it should look something like this:

    <parent>
        <groupId>org.apache.camel.quarkus</groupId>
        <artifactId>camel-quarkus-bom</artifactId>
        <version>1.0.0-M2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.my-org</groupId>
    <artifactId>my-app</artifactId>
    <version>0.0.1-SNAPSHOT</version>

Then I see this on startup:

```
$ mvn clean compile quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< org.my-org:my-app
>--------------------------
[INFO] Building Camel Quarkus :: Examples :: Rest Json 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar
]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ my-app ---
[INFO] Deleting /home/tdonohue/Code/repos/rest-json-working/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce
(camel-quarkus-enforcer-rules) @ my-app ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @
my-app ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process
(process-resource-bundles) @ my-app ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ my-app
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to
/home/tdonohue/Code/repos/rest-json-working/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:1.1.0.Final:dev (default-cli) @ my-app ---
Listening for transport dt_socket at address: 5005
2020-01-02 09:52:16,292 INFO  [org.apa.cam.mai.BaseMainSupport] (main)
Using properties from classpath:application.properties
2020-01-02 09:52:16,322 INFO  [org.apa.cam.mai.BaseMainSupport] (main)
Auto-configuration summary:
2020-01-02 09:52:16,322 INFO  [org.apa.cam.mai.BaseMainSupport] (main)
camel.context.name=quarkus-camel-example-rest-json
2020-01-02 09:52:16,416 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Apache Camel 3.0.0 (CamelContext: quarkus-camel-example-rest-json) is
starting
2020-01-02 09:52:16,417 INFO
 [org.apa.cam.imp.eng.DefaultManagementStrategy] (main) JMX is disabled
2020-01-02 09:52:16,489 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
StreamCaching is not in use. If using streams then its recommended to
enable stream caching. See more details at
http://camel.apache.org/stream-caching.html
2020-01-02 09:52:16,492 WARN  [org.apa.cam.com.jac.JacksonDataFormat]
(main) The option autoDiscoverObjectMapper is set to false, Camel won't
search in the registry
2020-01-02 09:52:16,557 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Route: route1 started and consuming from: platform-http://
/fruits?httpMethodRestrict=GET%2CPOST
2020-01-02 09:52:16,558 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Route: route2 started and consuming from: platform-http://
/legumes?httpMethodRestrict=GET
2020-01-02 09:52:16,561 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Total 2 routes, of which 2 are started
2020-01-02 09:52:16,562 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Apache Camel 3.0.0 (CamelContext: quarkus-camel-example-rest-json) started
in 0.145 seconds
2020-01-02 09:52:16,562 INFO  [io.quarkus] (main) Quarkus 1.1.0.Final
started in 1.766s. Listening on: http://0.0.0.0:8080
2020-01-02 09:52:16,564 INFO  [io.quarkus] (main) Profile dev activated.
Live Coding activated.
2020-01-02 09:52:16,564 INFO  [io.quarkus] (main) Installed features:
[camel-core, camel-platform-http, camel-support-common, cdi, vertx,
vertx-web]
```

Tom


On Wed, 1 Jan 2020 at 23:55, Imran Raza Khan <[hidden email]>
wrote:

> I followed the instruction mentioned on
> https://camel.apache.org/camel-quarkus/latest/first-steps.html to run
> simple example, but its throwing error while running
>
> $ mvn clean compile quarkus:dev
>
> Error:
>
> [INFO] Scanning for projects...
>
> [INFO]
>
> [INFO] -----< org.apache.camel.quarkus:camel-quarkus-examples-rest-json
> >------
>
> [INFO] Building Camel Quarkus :: Examples :: Rest Json 1.0.0-M2
>
> [INFO] --------------------------------[ jar
> ]---------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @
> camel-quarkus-examples-rest-json ---
>
> [INFO]
>
> [INFO] --- directory-maven-plugin:0.3.1:highest-basedir (directories) @
> camel-quarkus-examples-rest-json ---
>
> [INFO] Highest basedir set to: /Users/imran/testcamel/rest-json
>
> [INFO]
>
> [INFO] --- groovy-maven-plugin:2.1.1:execute (sanity-checks) @
> camel-quarkus-examples-rest-json ---
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time:  1.654 s
>
> [INFO] Finished at: 2020-01-02T00:51:04+01:00
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (sanity-checks) on
> project camel-quarkus-examples-rest-json: Execution sanity-checks of goal
> org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Impossible to
> read the text content from
>
> file:/Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy:
>
> /Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy
> (No such file or directory) -> [Help 1]
>
> [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/PluginExecutionException
>
Reply | Threaded
Open this post in threaded view
|

Re: Camel Quarkus Example not working

Tom Donohue-2
In reply to this post by imranrazakhan
Hey Imran

What does the top of your rest-json POM look like?

If you follow the steps it should look something like this, with
camel-quarkus-bom as the parent:

```
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.apache.camel.quarkus</groupId>
        <artifactId>camel-quarkus-bom</artifactId>
        <version>1.0.0-M2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.my-org</groupId>
    <artifactId>my-app</artifactId>
    <version>0.0.1-SNAPSHOT</version>
```

Then I see this on startup:

```
$ mvn clean compile quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< org.my-org:my-app
>--------------------------
[INFO] Building Camel Quarkus :: Examples :: Rest Json 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar
]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ my-app ---
[INFO] Deleting /home/tdonohue/Code/repos/rest-json-working/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce
(camel-quarkus-enforcer-rules) @ my-app ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @
my-app ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process
(process-resource-bundles) @ my-app ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
my-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ my-app
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to
/home/tdonohue/Code/repos/rest-json-working/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:1.1.0.Final:dev (default-cli) @ my-app ---
Listening for transport dt_socket at address: 5005
2020-01-02 09:52:16,292 INFO  [org.apa.cam.mai.BaseMainSupport] (main)
Using properties from classpath:application.properties
...
2020-01-02 09:52:16,562 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main)
Apache Camel 3.0.0 (CamelContext: quarkus-camel-example-rest-json) started
in 0.145 seconds
```

Tom


On Wed, 1 Jan 2020 at 23:55, Imran Raza Khan <[hidden email]>
wrote:

> I followed the instruction mentioned on
> https://camel.apache.org/camel-quarkus/latest/first-steps.html to run
> simple example, but its throwing error while running
>
> $ mvn clean compile quarkus:dev
>
> Error:
>
> [INFO] Scanning for projects...
>
> [INFO]
>
> [INFO] -----< org.apache.camel.quarkus:camel-quarkus-examples-rest-json
> >------
>
> [INFO] Building Camel Quarkus :: Examples :: Rest Json 1.0.0-M2
>
> [INFO] --------------------------------[ jar
> ]---------------------------------
>
> [INFO]
>
> [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @
> camel-quarkus-examples-rest-json ---
>
> [INFO]
>
> [INFO] --- directory-maven-plugin:0.3.1:highest-basedir (directories) @
> camel-quarkus-examples-rest-json ---
>
> [INFO] Highest basedir set to: /Users/imran/testcamel/rest-json
>
> [INFO]
>
> [INFO] --- groovy-maven-plugin:2.1.1:execute (sanity-checks) @
> camel-quarkus-examples-rest-json ---
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time:  1.654 s
>
> [INFO] Finished at: 2020-01-02T00:51:04+01:00
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (sanity-checks) on
> project camel-quarkus-examples-rest-json: Execution sanity-checks of goal
> org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Impossible to
> read the text content from
>
> file:/Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy:
>
> /Users/imran/testcamel/rest-json/tooling/scripts/validate-dependencies.groovy
> (No such file or directory) -> [Help 1]
>
> [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/PluginExecutionException
>
Reply | Threaded
Open this post in threaded view
|

Re: Camel Quarkus Example not working

imranrazakhan
In reply to this post by imranrazakhan
Hi,

Thanks, Its working now, i missed updating groupid and artifactid lines.