Skip to content

Commit

Permalink
refactor: get rid of cmpn osgi dependency (#9307)
Browse files Browse the repository at this point in the history
Not needed for flow-server.
  • Loading branch information
Denis authored Nov 4, 2020
1 parent 92c0dee commit d6cf4ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions flow-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@
<version>${osgi.core.version}</version>
<scope>provided</scope>
</dependency>
<!-- There is a registered OSGi service in the module -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<version>${osgi.compendium.version}</version>
<scope>provided</scope>
</dependency>

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.osgi.framework.BundleEvent;
import org.osgi.framework.ServiceRegistration;
import org.osgi.framework.wiring.BundleWiring;
import org.osgi.service.http.whiteboard.HttpWhiteboardConstants;
import org.osgi.util.tracker.BundleTracker;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -140,7 +139,7 @@ public Bundle addingBundle(Bundle bundle, BundleEvent event) {

private void registerPushResources(Bundle pushBundle) {
Hashtable<String, Object> properties = new Hashtable<>();
properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN,
properties.put("osgi.http.whiteboard.servlet.pattern",
"/VAADIN/static/push/*");
servletRegistration.compareAndSet(null,
pushBundle.getBundleContext().registerService(Servlet.class,
Expand Down

0 comments on commit d6cf4ea

Please sign in to comment.