brevilo commented on a change in pull request #806:
URL: https://github.com/apache/cxf/pull/806#discussion_r664435106



##########
File path: rt/rs/microprofile-client/pom.xml
##########
@@ -185,6 +185,26 @@
           <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        
<_removeheaders>Bundle-ActivationPolicy</_removeheaders>

Review comment:
       Thanks @reta, I totally missed "(re)defined in 
`microprofile-client/pom.xml`" before, hence my confusion.
   
   Anyhow, your approach doesn't work. If I remove only `cxf.bundle.activator` 
I get an exception that still involves `org.apache.cxf.bus.osgi.CXFActivator`. 
If I also remove `cxf.export.service` the exception is gone but `MANIFEST.MF` 
still contains `Bundle-ActivationPolicy: lazy` which is the root cause of the 
problem I'm trying to solve here: lazy activation just doesn't work for 
SPI/ServiceLoader.
   
   Since Aries Blueprint is used I had a look at how it might deal with the 
bundle activation policy. Unfortunately [that 
part](https://aries.apache.org/documentation/modules/blueprint.html#_lazy_and_eager_activiation)
 is missing from the documentation 😒  Any idea?
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to