Class SlingInitialContentMounter
java.lang.Object
org.apache.sling.maven.bundlesupport.fsresource.SlingInitialContentMounter
Manages OSGi configurations for File System Resource Provider for Sling-Initial-Content.
-
Constructor Summary
ConstructorsConstructorDescriptionSlingInitialContentMounter
(org.apache.maven.plugin.logging.Log log, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder, org.apache.maven.project.MavenProject project) -
Method Summary
-
Constructor Details
-
SlingInitialContentMounter
public SlingInitialContentMounter(org.apache.maven.plugin.logging.Log log, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, org.apache.hc.client5.http.config.RequestConfig.Builder requestConfigBuilder, org.apache.maven.project.MavenProject project)
-
-
Method Details
-
mount
public void mount(URI consoleTargetUrl, File bundleFile) throws org.apache.maven.plugin.MojoExecutionException Add configurations to a running OSGi instance for initial content.- Parameters:
consoleTargetUrl
- The web console base urlbundleFile
- The artifact (bundle)- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-
unmount
Remove configurations from a running OSGi instance for initial content.- Parameters:
consoleTargetUrl
- The web console base url- Throws:
org.apache.maven.plugin.MojoExecutionException
- Exception
-