Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Different way exist to create maven project. For the basic project like db, we have used the archetype 'simple' with the command followed by mvn eclipse:eclipse in the folder created :

Code Block
 
mvn archetype:create -DartifactId=simple -DgroupId=org.apache.camel.example -DartifactId=reportincident.model -Dversion=1.

...

Remark :

...

0-SNAPSHOT
cd reportincident.db
mvn eclipse:eclipse

For the OSGI bundles different approaches are available depending on the tools that you prefer to use :

But but for the purpose of this tutorial, we have used the spring archetype has been used and made some cleanup/modifications. Why this choice, simply because it allows to create :

  • all the folders required including also the MANIFEST,
  • Eclipse files
    in one step.

...

  • .

To create one of the tutorial project, you can follow the procedure described here

1) Execute maven projects, execute the following command in your Unix/Dos console .:

Code Block

mvn archetype:create -DarchetypeGroupId=org.springframework.osgi -DarchetypeArtifactId=spring-osgi-bundle-archetype -DarchetypeVersion=1.2.0 -DgroupId=org.apache.camel.example -DartifactId=reportincident.model -Dversion=1.0-SNAPSHOT

2) Import them into eclipse and enable the generated eclipse project in Eclipse workspace
3) Delete readme.txt, build.properties and template.mf files
3) Enable dependency management (see sonatype site). You should see the following projects with a small M letter top of the project folder :Image Removed

Step 2 : Develop the interface

...