This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 27c3da4 Automatic website deployment
27c3da4 is described below
commit 27c3da4da997e9479b12eb25f3112c39bd16396b
Author: jenkins <[email protected]>
AuthorDate: Fri Nov 15 17:49:52 2019 +0000
Automatic website deployment
---
.../context-aware-configuration.html | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git
a/documentation/bundles/context-aware-configuration/context-aware-configuration.html
b/documentation/bundles/context-aware-configuration/context-aware-configuration.html
index 091e41c..a0dffbb 100644
---
a/documentation/bundles/context-aware-configuration/context-aware-configuration.html
+++
b/documentation/bundles/context-aware-configuration/context-aware-configuration.html
@@ -224,6 +224,25 @@ public @interface MyConfig {
</dependencies>
</plugin>
</code></pre>
+<p>If you use the bnd-maven-plugin and raw bnd statements, you have to
configure it with this bnd statement:</p>
+<pre><code><!-- TODO syntax marker (#!xml) disabled --><plugin>
+ <groupId>biz.aQute.bnd</groupId>
+ <artifactId>bnd-maven-plugin</artifactId>
+ <configuration>
+ <bnd><![CDATA[
+ ...
+ -plugin
org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin
+ ]]></bnd>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.sling</groupId>
+
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
+ <version>1.0.2</version>
+ </dependency>
+ </dependencies>
+</plugin>
+</code></pre>
<h1><a href="#unit-tests-with-context-aware-configuration"
name="unit-tests-with-context-aware-configuration">Unit Tests with
Context-Aware Configuration</a></h1>
<p>When your code depends on Sling Context-Aware Configuration and you want to
write Sling Mocks-based unit tests running against the Context-Aware
configuration implementation you have to register the proper OSGi services to
use them. To make this easier, a "Apache Sling Context-Aware Configuration Mock
Plugin" is provided which does this job for you.</p>
<p>Example for setting up the unit test context rule:</p>
@@ -277,7 +296,7 @@ public class MyTest {
</div><footer class="footer">
<div class="content has-text-centered is-small">
<div class="revisionInfo">
- Last modified by <span class="author">sseifert</span>
on <span class="comment">Sun Mar 17 22:31:34 2019 +0100</span>
+ Last modified by <span class="author">sseifert</span>
on <span class="comment">Fri Nov 15 18:47:18 2019 +0100</span>
</div> <p>
Apache Sling, Sling, Apache, the Apache feather logo,
and the Apache Sling project logo are trademarks of The Apache Software
Foundation. All other marks mentioned may be trademarks or registered
trademarks of their respective owners.
</p><p>