| <!DOCTYPE html> |
| <!-- |
| | Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2017-06-02 |
| | Rendered using Apache Maven Fluido Skin 1.6 |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <meta charset="UTF-8" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| <meta name="Date-Revision-yyyymmdd" content="20170602" /> |
| <meta http-equiv="Content-Language" content="en" /> |
| <title>Apache Sling Maven Sling Plugin – sling:fsmount</title> |
| <link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" /> |
| <link rel="stylesheet" href="./css/site.css" /> |
| <link rel="stylesheet" href="./css/print.css" media="print" /> |
| <script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script> |
| </head> |
| <body class="topBarDisabled"> |
| <div class="container-fluid"> |
| <div id="banner"> |
| <div class="pull-left"><div id="bannerLeft"><h2>Apache Sling Maven Sling Plugin</h2> |
| </div> |
| </div> |
| <div class="pull-right"></div> |
| <div class="clear"><hr/></div> |
| </div> |
| |
| <div id="breadcrumbs"> |
| <ul class="breadcrumb"> |
| <li id="publishDate">Last Published: 2017-06-02<span class="divider">|</span> |
| </li> |
| <li id="projectVersion">Version: 2.3.0</li> |
| </ul> |
| </div> |
| <div class="row-fluid"> |
| <div id="leftColumn" class="span2"> |
| <div class="well sidebar-nav"> |
| <ul class="nav nav-list"> |
| <li class="nav-header">Overview</li> |
| <li><a href="index.html" title="Introduction"><span class="none"></span>Introduction</a> </li> |
| <li><a href="plugin-info.html" title="Goals"><span class="none"></span>Goals</a> </li> |
| <li class="nav-header">Project Documentation</li> |
| <li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a> </li> |
| <li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a> </li> |
| </ul> |
| <hr /> |
| <div id="poweredBy"> |
| <div class="clear"></div> |
| <div class="clear"></div> |
| <div class="clear"></div> |
| <div class="clear"></div> |
| <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a> |
| </div> |
| </div> |
| </div> |
| <div id="bodyColumn" class="span10" > |
| |
| |
| <div class="section"> |
| <h2><a name="sling:fsmount"></a>sling:fsmount</h2> |
| |
| <p><b>Full name</b>:</p> |
| |
| <p>org.apache.sling:maven-sling-plugin:2.3.0:fsmount</p> |
| |
| <p><b>Description</b>:</p> |
| |
| <div>Creates OSGi configurations for the <a class="externalLink" href="https://sling.apache.org/documentation/bundles/accessing-filesystem-resources-extensions-fsresource.html">Apache |
| Sling File System Resource Provider</a>.</div> |
| |
| <p><b>Attributes</b>:</p> |
| |
| <ul> |
| |
| <li>Requires a Maven project to be executed.</li> |
| </ul> |
| |
| <div class="section"> |
| <h3><a name="Required_Parameters"></a>Required Parameters</h3> |
| |
| <table class="table table-striped" border="0"> |
| |
| <tr class="a"> |
| |
| <th>Name</th> |
| |
| <th>Type</th> |
| |
| <th>Since</th> |
| |
| <th>Description</th> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#bundleFileName">bundleFileName</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>The name of the generated JAR file.<br /><b>Default value is</b>: <tt>${project.build.directory}/${project.build.finalName}.jar</tt>.<br /><b>User property is</b>: <tt>sling.file</tt>.</td> |
| </tr> |
| |
| <tr class="a"> |
| |
| <td><b><a href="#failOnError">failOnError</a></b></td> |
| |
| <td><tt>boolean</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>Determines whether or not to fail the build if the HTTP POST or PUT |
| returns an non-OK response code.<br /><b>Default value is</b>: <tt>true</tt>.<br /><b>User property is</b>: <tt>sling.failOnError</tt>.</td> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#password">password</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>The password to authenticate at the running Sling instance.<br /><b>Default value is</b>: <tt>admin</tt>.<br /><b>User property is</b>: <tt>sling.password</tt>.</td> |
| </tr> |
| |
| <tr class="a"> |
| |
| <td><b><a href="#slingUrl">slingUrl</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>The URL of the running Sling instance. The default is only useful |
| for <b>WebConsole</b> deployment.<br /><b>Default value is</b>: <tt>http://localhost:8080/system/console</tt>.<br /><b>User property is</b>: <tt>sling.url</tt>.</td> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#user">user</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>The user name to authenticate at the running Sling instance.<br /><b>Default value is</b>: <tt>admin</tt>.<br /><b>User property is</b>: <tt>sling.user</tt>.</td> |
| </tr> |
| </table> |
| </div> |
| |
| <div class="section"> |
| <h3><a name="Optional_Parameters"></a>Optional Parameters</h3> |
| |
| <table class="table table-striped" border="0"> |
| |
| <tr class="a"> |
| |
| <th>Name</th> |
| |
| <th>Type</th> |
| |
| <th>Since</th> |
| |
| <th>Description</th> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#deployFsResourceBundle">deployFsResourceBundle</a></b></td> |
| |
| <td><tt>boolean</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>Deploy <tt>org.apache.sling.fsresource</tt> to Sling instance |
| bundle when it is not deployed already.<br /><b>Default value is</b>: <tt>true</tt>.<br /></td> |
| </tr> |
| |
| <tr class="a"> |
| |
| <td><b><a href="#deployFsResourceBundlePrerequisites">deployFsResourceBundlePrerequisites</a></b></td> |
| |
| <td><tt>List</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>Bundles that have to be installed as prerequisites to execute this |
| goal. With multiple entries in the list different bundles with |
| different preconditions can be defined.<br /> |
| <b>Default value is:</b>: |
| |
| <div> |
| <pre> |
| <deployFsResourceBundlePrerequisites> |
| <bundlePrerequisite> |
| <bundles> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.fsresource</artifactId> |
| <version>2.1.4</version> |
| </bundle> |
| </bundles> |
| <preconditions> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.resourceresolver</artifactId> |
| <version>1.5.18</version> |
| </bundle> |
| </preconditions> |
| </bundlePrerequisite> |
| <bundlePrerequisite> |
| <bundles> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.fsresource</artifactId> |
| <version>1.4.4</version> |
| </bundle> |
| </bundles> |
| </bundlePrerequisite> |
| </deployFsResourceBundlePrerequisites> |
| </pre></div><br /></td> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#deploymentMethod">deploymentMethod</a></b></td> |
| |
| <td><tt>BundleDeploymentMethod</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>Bundle deployment method. One of the following three values are |
| allowed |
| |
| <ol style="list-style-type: decimal"> |
| |
| <li><b>WebConsole</b>, uses the <a class="externalLink" href="http://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html#post-requests">Felix |
| Web Console REST API</a> for deployment (HTTP POST). This is the |
| default. Make sure that <tt>slingUrl</tt> points to the Felix |
| Web Console in that case.</li> |
| |
| <li><b>WebDAV</b>, uses <a class="externalLink" href="https://sling.apache.org/documentation/development/repository-based-development.html">WebDAV</a> |
| for deployment (HTTP PUT). Make sure that <tt>slingUrl</tt> |
| points to the entry path of the Sling WebDAV bundle (usually below |
| regular Sling root URL). Issues a HTTP Delete for the uninstall |
| goal.</li> |
| |
| <li><b>SlingPostServlet</b>, uses the <a class="externalLink" href="https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html">Sling |
| Post Servlet</a> for deployment (HTTP POST). Make sure that |
| <tt>slingUrl</tt> points a path which is handled by the Sling |
| POST Servlet (usually below regular Sling root URL).</li> |
| </ol> |
| This has precedence over the deprecated parameter |
| <tt>usePut</tt>.<br /><b>Default value is</b>: <tt>WebConsole</tt>.<br /><b>User property is</b>: <tt>sling.deploy.method</tt>.</td> |
| </tr> |
| |
| <tr class="a"> |
| |
| <td><b><a href="#fileVaultFilterXmlFile">fileVaultFilterXmlFile</a></b></td> |
| |
| <td><tt>File</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>Path to META-INF/vault/filter.xml when using FileVault XML |
| filesystem layout.<br /><b>User property is</b>: <tt>sling.filevault.filterxml.file</tt>.</td> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#fileVaultJcrRootFile">fileVaultJcrRootFile</a></b></td> |
| |
| <td><tt>File</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>FileVault filesystem layout content root folder.<br /><b>User property is</b>: <tt>sling.filevault.jcr_root.file</tt>.</td> |
| </tr> |
| |
| <tr class="a"> |
| |
| <td><b><a href="#slingConsoleUrl">slingConsoleUrl</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>The WebConsole URL of the running Sling instance. This is required |
| for file system provider operations. If not configured the value of |
| slingUrl is used.<br /><b>User property is</b>: <tt>sling.console.url</tt>.</td> |
| </tr> |
| |
| <tr class="b"> |
| |
| <td><b><a href="#slingUrlSuffix">slingUrlSuffix</a></b></td> |
| |
| <td><tt>String</tt></td> |
| |
| <td><tt>-</tt></td> |
| |
| <td>An optional url suffix which will be appended to the |
| <tt>sling.url</tt> for use as the real target url. This allows |
| to configure different target URLs in each POM, while using the |
| same common <tt>sling.url</tt> in a parent POM (eg. |
| <tt>sling.url=http://localhost:8080</tt> and |
| <tt>sling.urlSuffix=/project/specific/path</tt>). This is |
| typically used in conjunction with WebDAV or SlingPostServlet |
| deployment methods.<br /><b>User property is</b>: <tt>sling.urlSuffix</tt>.</td> |
| </tr> |
| </table> |
| </div> |
| |
| <div class="section"> |
| <h3><a name="Parameter_Details"></a>Parameter Details</h3> |
| |
| <p><b><a name="bundleFileName">bundleFileName</a>:</b></p> |
| |
| <div>The name of the generated JAR file.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>Yes</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.file</tt></li> |
| |
| <li><b>Default</b>: <tt>${project.build.directory}/${project.build.finalName}.jar</tt></li> |
| </ul><hr /> |
| <p><b><a name="deployFsResourceBundle">deployFsResourceBundle</a>:</b></p> |
| |
| <div>Deploy <tt>org.apache.sling.fsresource</tt> to Sling instance |
| bundle when it is not deployed already.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>boolean</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>Default</b>: <tt>true</tt></li> |
| </ul><hr /> |
| <p><b><a name="deployFsResourceBundlePrerequisites">deployFsResourceBundlePrerequisites</a>:</b></p> |
| |
| <div>Bundles that have to be installed as prerequisites to execute this |
| goal. With multiple entries in the list different bundles with |
| different preconditions can be defined.<br /> |
| <b>Default value is:</b>: |
| |
| <div> |
| <pre> |
| <deployFsResourceBundlePrerequisites> |
| <bundlePrerequisite> |
| <bundles> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.fsresource</artifactId> |
| <version>2.1.4</version> |
| </bundle> |
| </bundles> |
| <preconditions> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.resourceresolver</artifactId> |
| <version>1.5.18</version> |
| </bundle> |
| </preconditions> |
| </bundlePrerequisite> |
| <bundlePrerequisite> |
| <bundles> |
| <bundle> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.fsresource</artifactId> |
| <version>1.4.4</version> |
| </bundle> |
| </bundles> |
| </bundlePrerequisite> |
| </deployFsResourceBundlePrerequisites> |
| </pre></div></div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.util.List</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| </ul><hr /> |
| <p><b><a name="deploymentMethod">deploymentMethod</a>:</b></p> |
| |
| <div>Bundle deployment method. One of the following three values are |
| allowed |
| |
| <ol style="list-style-type: decimal"> |
| |
| <li><b>WebConsole</b>, uses the <a class="externalLink" href="http://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html#post-requests">Felix |
| Web Console REST API</a> for deployment (HTTP POST). This is the |
| default. Make sure that <tt>slingUrl</tt> points to the Felix |
| Web Console in that case.</li> |
| |
| <li><b>WebDAV</b>, uses <a class="externalLink" href="https://sling.apache.org/documentation/development/repository-based-development.html">WebDAV</a> |
| for deployment (HTTP PUT). Make sure that <tt>slingUrl</tt> |
| points to the entry path of the Sling WebDAV bundle (usually below |
| regular Sling root URL). Issues a HTTP Delete for the uninstall |
| goal.</li> |
| |
| <li><b>SlingPostServlet</b>, uses the <a class="externalLink" href="https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html">Sling |
| Post Servlet</a> for deployment (HTTP POST). Make sure that |
| <tt>slingUrl</tt> points a path which is handled by the Sling |
| POST Servlet (usually below regular Sling root URL).</li> |
| </ol> |
| This has precedence over the deprecated parameter |
| <tt>usePut</tt>.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>org.apache.sling.maven.bundlesupport.deploy.BundleDeploymentMethod</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.deploy.method</tt></li> |
| |
| <li><b>Default</b>: <tt>WebConsole</tt></li> |
| </ul><hr /> |
| <p><b><a name="failOnError">failOnError</a>:</b></p> |
| |
| <div>Determines whether or not to fail the build if the HTTP POST or PUT |
| returns an non-OK response code.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>boolean</tt></li> |
| |
| <li><b>Required</b>: <tt>Yes</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.failOnError</tt></li> |
| |
| <li><b>Default</b>: <tt>true</tt></li> |
| </ul><hr /> |
| <p><b><a name="fileVaultFilterXmlFile">fileVaultFilterXmlFile</a>:</b></p> |
| |
| <div>Path to META-INF/vault/filter.xml when using FileVault XML |
| filesystem layout.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.io.File</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.filevault.filterxml.file</tt></li> |
| </ul><hr /> |
| <p><b><a name="fileVaultJcrRootFile">fileVaultJcrRootFile</a>:</b></p> |
| |
| <div>FileVault filesystem layout content root folder.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.io.File</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.filevault.jcr_root.file</tt></li> |
| </ul><hr /> |
| <p><b><a name="password">password</a>:</b></p> |
| |
| <div>The password to authenticate at the running Sling instance.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>Yes</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.password</tt></li> |
| |
| <li><b>Default</b>: <tt>admin</tt></li> |
| </ul><hr /> |
| <p><b><a name="slingConsoleUrl">slingConsoleUrl</a>:</b></p> |
| |
| <div>The WebConsole URL of the running Sling instance. This is required |
| for file system provider operations. If not configured the value of |
| slingUrl is used.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.console.url</tt></li> |
| </ul><hr /> |
| <p><b><a name="slingUrl">slingUrl</a>:</b></p> |
| |
| <div>The URL of the running Sling instance. The default is only useful |
| for <b>WebConsole</b> deployment.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>Yes</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.url</tt></li> |
| |
| <li><b>Default</b>: <tt>http://localhost:8080/system/console</tt></li> |
| </ul><hr /> |
| <p><b><a name="slingUrlSuffix">slingUrlSuffix</a>:</b></p> |
| |
| <div>An optional url suffix which will be appended to the |
| <tt>sling.url</tt> for use as the real target url. This allows |
| to configure different target URLs in each POM, while using the |
| same common <tt>sling.url</tt> in a parent POM (eg. |
| <tt>sling.url=http://localhost:8080</tt> and |
| <tt>sling.urlSuffix=/project/specific/path</tt>). This is |
| typically used in conjunction with WebDAV or SlingPostServlet |
| deployment methods.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>No</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.urlSuffix</tt></li> |
| </ul><hr /> |
| <p><b><a name="user">user</a>:</b></p> |
| |
| <div>The user name to authenticate at the running Sling instance.</div> |
| |
| <ul> |
| |
| <li><b>Type</b>: <tt>java.lang.String</tt></li> |
| |
| <li><b>Required</b>: <tt>Yes</tt></li> |
| |
| <li><b>User Property</b>: <tt>sling.user</tt></li> |
| |
| <li><b>Default</b>: <tt>admin</tt></li> |
| </ul> |
| </div> |
| </div> |
| |
| |
| </div> |
| </div> |
| </div> |
| <hr/> |
| <footer> |
| <div class="container-fluid"> |
| <div class="row-fluid"> |
| <p>Copyright ©2007–2017 |
| <a href="https://www.apache.org/">The Apache Software Foundation</a>. |
| All rights reserved.</p> |
| </div> |
| </div> |
| </footer> |
| </body> |
| </html> |