Skip to content

Instantly share code, notes, and snippets.

View cleberjamaral's full-sized avatar
🎯

Cleber Jorge Amaral cleberjamaral

🎯
View GitHub Profile

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

How to use github as a maven repository

In this how-to it is being explained how to create a maven repository on github and how to use an existing one.

Creating a repository

  1. Clone your original project to a new local repository (change GROUP-NAME and PROJECT-NAME) git clone https://github.com/GROUP-NAME/PROJECT-NAME.git PROJECT-NAME-maven2

  2. Go to the clonned repository (use your PROJECT-NAME-maven2) cd PROJECT-NAME-maven2