You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by fb...@apache.org on 2013/03/03 14:33:56 UTC

svn commit: r1452038 - in /karaf/eik/trunk/manual/src/main/webapp: images/devcomponentwithm2e_1.png images/devcomponentwithm2e_2.png user-guide/devcomponentwithm2e.conf user-guide/index.conf

Author: fbalicchia
Date: Sun Mar  3 13:33:55 2013
New Revision: 1452038

URL: http://svn.apache.org/r1452038
Log:
KARAF-2200 Improve documentation with example that m2e to create pde plugins

Added:
    karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_1.png   (with props)
    karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_2.png   (with props)
    karaf/eik/trunk/manual/src/main/webapp/user-guide/devcomponentwithm2e.conf
Modified:
    karaf/eik/trunk/manual/src/main/webapp/user-guide/index.conf

Added: karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_1.png
URL: http://svn.apache.org/viewvc/karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_1.png?rev=1452038&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_2.png
URL: http://svn.apache.org/viewvc/karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_2.png?rev=1452038&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/eik/trunk/manual/src/main/webapp/images/devcomponentwithm2e_2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/eik/trunk/manual/src/main/webapp/user-guide/devcomponentwithm2e.conf
URL: http://svn.apache.org/viewvc/karaf/eik/trunk/manual/src/main/webapp/user-guide/devcomponentwithm2e.conf?rev=1452038&view=auto
==============================================================================
--- karaf/eik/trunk/manual/src/main/webapp/user-guide/devcomponentwithm2e.conf (added)
+++ karaf/eik/trunk/manual/src/main/webapp/user-guide/devcomponentwithm2e.conf Sun Mar  3 13:33:55 2013
@@ -0,0 +1,72 @@
+h1. Developing OSGi components with m2e and EIK
+
+Most of the examples and archetype present on the web use maven-bundle-plugins to create bundle. 
+EIK is able to use these archetype through the help of M2E.
+
+If m2e is not installed yet please download it from [m2e|http://download.eclipse.org/technology/m2e/releases].
+
+Using Karaf-bundle-archetype a simple projects called simpleBundle.
+
+We need to instruct maven-bundle-plugin configuration like this:
+
+* manifestLocation to META-INF
+* unpackBundle to true
+
+{noformat}
+<plugin>
+	<groupId>org.apache.felix</groupId>
+	<artifactId>maven-bundle-plugin</artifactId>
+	<version>2.3.7</version>
+	<extensions>true</extensions>
+	<configuration>
+	<manifestLocation>META-INF</manifestLocation>
+	<unpackBundle>true</unpackBundle>
+	<instructions>
+	<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+	<Bundle-Version>${project.version}</Bundle-Version>
+	<Bundle-Activator>org.apache.karaf.eik.manual.simpleBundle.Activator</Bundle-Activator>
+	<Export-Package>
+		org.apache.karaf.eik.manual.simpleBundle*;version=${project.version}
+	</Export-Package>
+	<Import-Package>
+		*
+	</Import-Package>
+	</instructions>
+	</configuration>
+</plugin>
+{noformat}
+
+
+* Right click on project -> Maven -> Update Project...
+* Right click on project -> RunAs -> Maven install
+
+
+from Debug Configurations is possible to see simpleBundle
+
+!/images/devcomponentwithm2e_1.png!
+
+Run Eik and to verify the installed bundle were started type osgi:list
+
+!/images/devcomponentwithm2e_2.png!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Modified: karaf/eik/trunk/manual/src/main/webapp/user-guide/index.conf
URL: http://svn.apache.org/viewvc/karaf/eik/trunk/manual/src/main/webapp/user-guide/index.conf?rev=1452038&r1=1452037&r2=1452038&view=diff
==============================================================================
--- karaf/eik/trunk/manual/src/main/webapp/user-guide/index.conf (original)
+++ karaf/eik/trunk/manual/src/main/webapp/user-guide/index.conf Sun Mar  3 13:33:55 2013
@@ -8,3 +8,4 @@ h1. Eclipse Integration Karaf User Guide
 * [View loaded bundle |/user-guide/loadbundle]
 * [Uninstalling |/user-guide/uninstall]
 * [Developing OSGi components|/user-guide/devcomponent]
+* [Developing OSGi components with m2e|/user-guide/devcomponentwithm2e]