I have a WAB in a karaf container that I need to deploy using a context path based on environment variables (k8s helm). Currently its web-ContextPath is hardcoded in a pom.xml, so it's compile-time only which won't work for our deployments.
I'm wondering if it's possible to register this WAB dynamically as one would a servlet using HttpService and/or pax-web. I've been digging through the documentation and examples but so far I haven't been able to work it out. Is this doable? If so, are there any examples of this? Ultimately, I don't care what form the service takes as long as it can serve static files from a directory. clip from the pom.xml <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <_wab>src/main/webapp</_wab> <Include-Resource>{maven-resources},OSGI-INF/blueprint/blueprint.xml=${project.build.directory}/classes/OSGI-INF/blueprint/blueprint.xml</Include-Resource> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency> <Embed-Directory>WEB-INF/lib</Embed-Directory> <Web-ContextPath>/</Web-ContextPath> </instructions> </configuration> </plugin> -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/2e75aacf-be77-4753-a05c-126df2b7f487n%40googlegroups.com.