Fork me on GitHub

slingfeature:info

Full name:

org.apache.sling:slingfeature-maven-plugin:1.7.2:info

Description:

Extract information from a feature This mojo does not require a project, it can be run by just pointing it at a feature file. When run from within a project, the normal feature selection mechanism can be used. This mojo supports
  • Extracting the exported packages per feature and writing them to a file
  • Detecting duplicates across features and writing a report

Attributes:

  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.1.20.

Required Parameters

Name Type Since Description
<features> File 1.1.20 Directory containing feature files
Default value is: src/main/features.
<testFeatures> File 1.1.20 Directory containing test feature files.
Default value is: src/test/features.

Optional Parameters

Name Type Since Description
<artifactExcludesList> String 1.2.0 A comma separated list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of excludes from the command line.
User property is: excludes.
<artifactIncludesList> String 1.2.0 A comma separated list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of includes from the command line.
User property is: includes.
<enableLegacyVariableReplacement> boolean 1.3.6 Enable old variable replacement in feature model based on the full maven project including system variables. If this is enabled, enableProjectVariableReplacement and replacePropertyVariables have no effect.
Default value is: false.
<enableProjectVariableReplacement> boolean 1.3.6 Enable the replacement of variables when reading a feature model. The supported variables are "project.groupId", "project.artifactId", "project.version" and "project.osgiVersion".
Default value is: true.
<featureFile> File 1.1.20 (no description)
User property is: featureFile.
<featuresExcludes> String 1.1.20 Comma separated list of excludes for the feature files. Feature files excluded by this configuration are not processed at all.
<featuresIncludes> String 1.1.20 Comma separated list of includes for the feature files in the configured directory. Only feature files specified by this include are processed.
Default value is: **/*.json.
<generatedFeatures> File 1.1.20 Directory containing generated feature files
<generatedFeaturesExcludes> String 1.1.20 Comma separated list of excludes for the generated feature files. Feature files excluded by this configuration are not processed at all.
<generatedFeaturesIncludes> String 1.1.20 Comma separated list of includes for the generated feature files in the configured directory. Only feature files specified by this include are processed.
Default value is: **/*.json.
<infoFeatureFiles> String 1.1.20 Select the feature files if run in standalone mode; comma separated list of file names.
User property is: infoFeatureFiles.
<infoFeatures> FeatureSelectionConfig 1.1.20 Select the features for info generation.
<jarStartOrder> int 1.1.20 The start level for the attached jar/bundle.
<outputDirectory> File 1.1.20 If output format is set to file, this can be used to change the output directory.
User property is: outputDirectory.
<outputExportedPackages> String 1.1.20 (no description)
User property is: outputExportedPackages.
<outputFormat> String 1.1.20 Output format, either file or log.
Default value is: file.
User property is: outputFormat.
<replacePropertyVariables> String 1.3.6 A comma separated list of variables which are replaced when a feature model is read. The value of these variables is fetched from the project properties.
<reports> String 1.1.20 Comma separated list of reports.
Default value is: exported-packages.
User property is: reports.
<skipAddFeatureDependencies> boolean 1.1.20 If set to true the artifacts from the feature are not as dependencies to the project.
Default value is: false.
<skipAddJarToFeature> boolean 1.1.20 If set to true the main jar artifact is not added to the feature.
Default value is: false.
<skipAddJarToTestFeature> boolean 1.1.20 If set to true the main jar artifact is not added to the test feature.
Default value is: false.
<skipAddTestFeatureDependencies> boolean 1.1.20 If set to true the artifacts from the test feature are not as dependencies to the project.
Default value is: true.
<testFeaturesExcludes> String 1.1.20 Comma separated list of excludes for the test features.
<testFeaturesIncludes> String 1.1.20 Comma separated list of includes for the test features.
Default value is: **/*.json.
<validateFeatures> boolean 1.1.20 If set to true the features are validated against the JSON schema.
Default value is: true.

Parameter Details

<artifactExcludesList>

A comma separated list of artifact patterns to exclude. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of excludes from the command line.
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: No
  • User Property: excludes

<artifactIncludesList>

A comma separated list of artifact patterns to include. Follows the pattern "groupId:artifactId:type:classifier:version". Designed to allow specifying the set of includes from the command line.
  • Type: java.lang.String
  • Since: 1.2.0
  • Required: No
  • User Property: includes

<enableLegacyVariableReplacement>

Enable old variable replacement in feature model based on the full maven project including system variables. If this is enabled, enableProjectVariableReplacement and replacePropertyVariables have no effect.
  • Type: boolean
  • Since: 1.3.6
  • Required: No
  • Default: false

<enableProjectVariableReplacement>

Enable the replacement of variables when reading a feature model. The supported variables are "project.groupId", "project.artifactId", "project.version" and "project.osgiVersion".
  • Type: boolean
  • Since: 1.3.6
  • Required: No
  • Default: true

<featureFile>

(no description)
  • Type: java.io.File
  • Since: 1.1.20
  • Required: No
  • User Property: featureFile

<features>

Directory containing feature files
  • Type: java.io.File
  • Since: 1.1.20
  • Required: Yes
  • Default: src/main/features

<featuresExcludes>

Comma separated list of excludes for the feature files. Feature files excluded by this configuration are not processed at all.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No

<featuresIncludes>

Comma separated list of includes for the feature files in the configured directory. Only feature files specified by this include are processed.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • Default: **/*.json

<generatedFeatures>

Directory containing generated feature files
  • Type: java.io.File
  • Since: 1.1.20
  • Required: No

<generatedFeaturesExcludes>

Comma separated list of excludes for the generated feature files. Feature files excluded by this configuration are not processed at all.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No

<generatedFeaturesIncludes>

Comma separated list of includes for the generated feature files in the configured directory. Only feature files specified by this include are processed.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • Default: **/*.json

<infoFeatureFiles>

Select the feature files if run in standalone mode; comma separated list of file names.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • User Property: infoFeatureFiles

<infoFeatures>

Select the features for info generation.
  • Type: org.apache.sling.feature.maven.mojos.FeatureSelectionConfig
  • Since: 1.1.20
  • Required: No

<jarStartOrder>

The start level for the attached jar/bundle.
  • Type: int
  • Since: 1.1.20
  • Required: No

<outputDirectory>

If output format is set to file, this can be used to change the output directory.
  • Type: java.io.File
  • Since: 1.1.20
  • Required: No
  • User Property: outputDirectory

<outputExportedPackages>

(no description)
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • User Property: outputExportedPackages

<outputFormat>

Output format, either file or log.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • User Property: outputFormat
  • Default: file

<replacePropertyVariables>

A comma separated list of variables which are replaced when a feature model is read. The value of these variables is fetched from the project properties.
  • Type: java.lang.String
  • Since: 1.3.6
  • Required: No

<reports>

Comma separated list of reports.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • User Property: reports
  • Default: exported-packages

<skipAddFeatureDependencies>

If set to true the artifacts from the feature are not as dependencies to the project.
  • Type: boolean
  • Since: 1.1.20
  • Required: No
  • Default: false

<skipAddJarToFeature>

If set to true the main jar artifact is not added to the feature.
  • Type: boolean
  • Since: 1.1.20
  • Required: No
  • Default: false

<skipAddJarToTestFeature>

If set to true the main jar artifact is not added to the test feature.
  • Type: boolean
  • Since: 1.1.20
  • Required: No
  • Default: false

<skipAddTestFeatureDependencies>

If set to true the artifacts from the test feature are not as dependencies to the project.
  • Type: boolean
  • Since: 1.1.20
  • Required: No
  • Default: true

<testFeatures>

Directory containing test feature files.
  • Type: java.io.File
  • Since: 1.1.20
  • Required: Yes
  • Default: src/test/features

<testFeaturesExcludes>

Comma separated list of excludes for the test features.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No

<testFeaturesIncludes>

Comma separated list of includes for the test features.
  • Type: java.lang.String
  • Since: 1.1.20
  • Required: No
  • Default: **/*.json

<validateFeatures>

If set to true the features are validated against the JSON schema.
  • Type: boolean
  • Since: 1.1.20
  • Required: No
  • Default: true