How to use the iPOJO Maven Plug-inTo use the iPOJO Maven plug-in, edit the following pom.xml (replace all $xxx elements): <project> <dependencies> <build> The iPOJO Maven Plug-in is generally used with the BND Maven Plug-in (more details here). However the two configurations are completely separated. So, you can use all BND Maven plug-in features. The iPOJO configuration section can be used as previously written without any changes. However it requires that your metadata file is inside the "src/main/resources" folder and is named "metadata.xml". ExecutionTo manipulate your project, use the "mvn clean install" command. The output should be like: [INFO] Scanning for projects... Configuration OptionsYou can configure the localization of the iPOJO metadata file as following: <plugin> In the metadata element, you can specify your metadata files. This file must be either in the same directory than the POM file (project root) or in one of the resource folder of the maven project (for instance, "src/main/resources/ipojo/meta.xml"). The second option allows skipping annotations processing, by using the "ignoreAnnotations" element: <plugin> Generate the skeleton of your iPOJO bundleThe maven-ipojo-plugin provides a way to generate the skeleton of your project. To generate this structure, just launch the following command: mvn org.apache.maven.plugins:maven-archetype-plugin:create -DarchetypeArtifactId=maven-ipojo-plugin -DarchetypeGroupId=org.apache.felix -DartifactId=ARTIFACT_NAME_OF_YOUR_PROJECT -DgroupId=GROUP_ID_OF_YOUR_PROJECT -DarchetypeVersion=VERSION_OF_YOUR_PROJECT -DpackageName=PACKAGE_NAME This command generates :
The src/main/resources folder contains a metadata.xml file to fill out. Note: the maven-ipojo-plugin archetype gerenrate a pom file using the latest released version of the mavne-ipojo-plugin. |
OverviewGetting StartedUser Guide
ToolsDeveloper GuideMisc & Contact
|