Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cleberjamaral/2914b691085cfaa6a163b7ba39d75af8 to your computer and use it in GitHub Desktop.
Save cleberjamaral/2914b691085cfaa6a163b7ba39d75af8 to your computer and use it in GitHub Desktop.

How to create a camel component from archetype

Go to yout projects root folder

$ cd ~/my_projects_folder

Generate camel component structure from archetype

$ mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-component -DarchetypeVersion=2.23.0 -DarchetypeRepository=https://repository.apache.org/content/groups/snapshots-group -DgroupId=org.apache.camel.component -DartifactId=camel-helloworld

Type a version number o accept the suggestion

Define value for property 'version' 1.0-SNAPSHOT: your_version_number

Type the name of your new component

Define value for property 'name': my_component_name

Type the URL scheme of your new component, so the syntax will be syntax="my_scheme_name:name"

Define value for property 'scheme': my_scheme_name

Accept suggested slf4j version

Y: y

More information:

http://camel.apache.org/creating-a-new-camel-component.html

@cleberjamaral
Copy link
Author

First commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment