Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Property

Description

Version

specVersion

The plugin will generate a descriptor for the Declarative Service version (either 1.0 or 1.1). If no value is specified, the plugin will detect the version and only use 1.1 if features from this version are used.

>= 1.4.0

generateAccessors

If this switch is turned on, the bind and unbind methods for unary references are automatically generated by the plugin. By default this is set to true.

 

parseJavadoc

If this switch is turned on, the java source code and its javadoc tags are scanned for the scr tags (see below). The default value is true.

 

processAnnotations

If this switch is turned on, the java code is scanned for the scr annotations (see below). The default value is true.

>= 1.2.0

sourceExcludes

Comma separated list of classes to exclude when processing the source.

 

strictMode

The plugin distinguishes between errors and warnings. In strict mode warnings are treated as errors and cause the plugin to fail. The default value is false.

 

properties

A map of predefined properties. These properties are set to each component (if the component does not define the property already). This is a map where the property name is made up by the included element name and the value is the value of the element.

>= 1.2.0

finalName

The name of the descriptor file to create. This property defaults to the value of the scr.descriptor.name property if defined. Otherwise the default is serviceComponents.xml.

 

metaTypeName

The name of the descriptor file to create. This property defauls to metatype.xml.

 

outputDirectory

The directory where all files are generated in. This defaults to scr-plugin-generated inside the build output directory.

 

The meta type file is generated in the OSGI-INF/metatype/ directory and the scr descriptor file in the OSGI-INF directory.
Note: The location of the meta type descriptor may not be changed as the OSGi Metatype Service Specification prescribes the location of the descriptors.

...