sling:deploy-file
Full name:
org.apache.sling:maven-sling-plugin:2.1.10:deploy-file
Description:
Deploy a JAR representing an OSGi Bundle. This method posts the
bundle built by maven to an OSGi Bundle Repository accepting the
bundle. The plugin uses a multipart/format-data POST
request to just post the file to the URL configured in the
obr property.
Attributes:
Required Parameters
Name |
Type |
Since |
Description |
failOnError |
boolean |
- |
Determines whether or not to fail the build if the HTTP POST or PUT
returns an non-OK response code. Default value is: true. User property is: sling.failOnError. |
obr |
String |
- |
The URL to the OSGi Bundle repository to which the bundle is
posted, e.g. http://obr.sample.com User property is: obr. |
Optional Parameters
Name |
Type |
Since |
Description |
bundleFileName |
String |
- |
The name of the generated JAR file. User property is: sling.file. |
Parameter Details
bundleFileName:
The name of the generated JAR file.
- Type: java.lang.String
- Required: No
- User Property: sling.file
failOnError:
Determines whether or not to fail the build if the HTTP POST or PUT
returns an non-OK response code.
- Type: boolean
- Required: Yes
- User Property: sling.failOnError
- Default: true
obr:
The URL to the OSGi Bundle repository to which the bundle is
posted, e.g. http://obr.sample.com
- Type: java.lang.String
- Required: Yes
- User Property: obr