Git Product home page Git Product logo

Comments (4)

MariuszHxGNMIN avatar MariuszHxGNMIN commented on July 17, 2024 2

Thanks for replay.... I found the answer... the problem was with my default shell... if you execute this in Powershell you need to make it like that
mvn compile exec:java "-Dexec.mainClass=camelinaction.FileCopierWithCamel"
and in CMD
mvn compile exec:java -Dexec.mainClass=camelinaction.FileCopierWithCamel

from camelinaction2.

davsclaus avatar davsclaus commented on July 17, 2024

I wonder if you typed something wrong, or made some wrong space. You can copy/paste the command from the readme file.

^Cdavsclaus:/Users/davsclaus/workspace/camelinaction2/chapter1/file-copy (master)/$ mvn compile exec:java -Dexec.mainClass=camelinaction.FileCopierWithCamel
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel in Action 2 :: Chapter 1 :: File Copy Example 2.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ chapter1-file-copy ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ chapter1-file-copy ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ chapter1-file-copy ---
[ion.FileCopierWithCamel.main()] DefaultCamelContext            INFO  Apache Camel 2.18.3 (CamelContext: camel-1) is starting
[ion.FileCopierWithCamel.main()] ManagedManagementStrategy      INFO  JMX is enabled
[ion.FileCopierWithCamel.main()] DefaultTypeConverter           INFO  Loaded 189 type converters
[ion.FileCopierWithCamel.main()] DefaultRuntimeEndpointRegistry INFO  Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
[ion.FileCopierWithCamel.main()] DefaultCamelContext            INFO  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
[ion.FileCopierWithCamel.main()] FileEndpoint                   INFO  Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
[ion.FileCopierWithCamel.main()] FileEndpoint                   INFO  Using default memory based idempotent repository with cache max size: 1000
[ion.FileCopierWithCamel.main()] DefaultCamelContext            INFO  Route: route1 started and consuming from: file://data/inbox?noop=true
[ion.FileCopierWithCamel.main()] DefaultCamelContext            INFO  Total 1 routes, of which 1 are started.
[ion.FileCopierWithCamel.main()] DefaultCamelContext            INFO  Apache Camel 2.18.3 (CamelContext: camel-1) started in 0.492 seconds
^Cdavsclaus:/Users/davsclaus/workspace/camelinaction2/chapter1/file-copy (master)/$

from camelinaction2.

davsclaus avatar davsclaus commented on July 17, 2024

@janstey we should consider adding that main class to the exec-java plugin in the pom.xml so people can just type

mvn compile exec:java

We do this for some of the Camel examples at Apache Camel

from camelinaction2.

davsclaus avatar davsclaus commented on July 17, 2024

Would be good to make chapter 1 example even easier to run

from camelinaction2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.