sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1767833 - in /sling/site/trunk/content/documentation/development: ide-tooling.mdtext ide-tooling/ide-tooling-incremental-build.mdtext
Date Thu, 03 Nov 2016 08:29:17 GMT
Author: kwin
Date: Thu Nov  3 08:29:17 2016
New Revision: 1767833

SLING-6112 document how to configure incremental builds properly


Modified: sling/site/trunk/content/documentation/development/ide-tooling.mdtext
--- sling/site/trunk/content/documentation/development/ide-tooling.mdtext (original)
+++ sling/site/trunk/content/documentation/development/ide-tooling.mdtext Thu Nov  3 08:29:17
@@ -216,7 +216,7 @@ Additional information can be obtained b
-### Why do I get an errror about "No DS descriptor found at..."?
+### Why do I get an error about "No DS descriptor found at..."?
 ![Missing SCR descriptors](ide-tooling/missing-scr-descriptor.png)
@@ -229,6 +229,10 @@ Bundle deployment assumes that the OSGi
 One often-occuring situation is that a Maven project using the maven-scr-plugin generates
the descriptors outside of target/classes, typically in target/scr-plugin-generated. To fix
this, make sure that you're using the maven-scr-plugin 1.15.0 or newer and that you have not
set a custom outputDirectory.
+### How do I fix the error "Missing m2e incremental build support for generating the bundle
manifest, component descriptions and metatype resources"?
+For further information on how to fix and configure the according maven plugins look at [Incremental
Builds in Sling IDE tooling for Eclipse]({{ refs.ide-tooling-incremental-build.path }}).
 ## Known issues
 The content sync implementation tries to mimic the FileVault semantics as closely as possible.
However, it is possible that some more exotic content structures will not be handled properly.
Some of the problems we're are of are:

Added: sling/site/trunk/content/documentation/development/ide-tooling/ide-tooling-incremental-build.mdtext
--- sling/site/trunk/content/documentation/development/ide-tooling/ide-tooling-incremental-build.mdtext
+++ sling/site/trunk/content/documentation/development/ide-tooling/ide-tooling-incremental-build.mdtext
Thu Nov  3 08:29:17 2016
@@ -0,0 +1,32 @@
+Title: Incremental Builds in Sling IDE tooling for Eclipse
+## Overview
+The Sling IDE Tooling relies on the [m2e incremental build support](
for the generation of the bundle's manifest, the component descriptions as well as the metatype
resources (the latter being generated through OSGi 6 [component annotations](
and [metatype annotations](
or through [Apache Felix SCR annotations](
That means whenever at least one java class is touched and the auto-build in Eclipse is enabled,
the annotations on that class should be reevaluated which may lead to a modification of the
bundle's manifest and/or generation/modification of service description XMLs and/or Metatype
resource files.
+Depending on which maven plugins you use you must adjust their configuration accordingly
to properly support incremental builds.
+## Manifest Generation
+### maven-bundle-plugin
+The [maven-bundle-plugin](
is based on the [bnd library]( It uses bnd to generate the bundle's
+#### maven-bundle-plugin prior to version 3.2.0
+This version needs [m2eclipse-tycho]( (an Eclipse
plugin) to generate the manifest and service descriptions during the incremental build. This
plugin can be installed through the Maven Discovery feature of m2e.
+#### maven-bundle-plugin since version 3.2.0
+Natively supports incremental builds for the `manifest` goal ([FELIX-4009](
which needs to be explicitly configured as outlined in the [maven-bundle-plugin FAQ](
m2e-tycho is incompatible with that version, because it leads to errors like `Duplicate bundle
executions found. Please remove any explicitly defined bundle executions in your pom.xml.`
and `Duplicate manifest executions found. Please remove any explicitly defined manifest executions
in your pom.xml.` (compare with [issue 31](
Therefore uninstall m2eclipse-tycho if you want to use newer versions of the `maven-bundle-plugin`.
+### bnd-maven-plugin
+The [bnd-maven-plugin](
is developed from the bnd team and is based on bnd as well. It is versioned in parallel with
bnd and bndtools. It natively supports incremental builds since version 3.1.0 [issue 1180](
+## Service Description and Metatype Resources
+OSGi component and metatype annotations (for OSGi 6) are natively supported through bnd (and
therefore automatically generated through both maven-bundle-plugin and bnd-maven-plugin).
You don't need to configure anything explicitly since version 3.0.0 of bnd [issue 1041](
+The `maven-bundle-plugin` can be optionally coupled with the `maven-scr-plugin`. Both `maven-bundle-plugin`
as well as `bnd-maven-plugin` can be optionally coupled with the [scr-bnd-plugin](
to generate components descriptions and metatype resources out of the Felix SCR annotations.
The recommended way for new projects though is to rely on OSGi 6 annotations only.
\ No newline at end of file

View raw message