Full name:
org.apache.sling:slingfeature-maven-plugin:1.7.2:include-artifact
Description:
<includeArtifact>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.test.feature</artifactId>
<version>1.0.0</version>
<classifier>my-test-classifier</classifier>
<type>slingosgifeature</type>
</includeArtifact>
It also can add dependencies to the
FM file if its scope is provided (normally that would be
'compile'). In addition a bundle start order can be set for these
included dependency bundles. Finally any FM files inside the Source
FM folder are embedded into the FM file. This allows to add
extension files like 'repoinit' etc to be added to provide them
with the module.Attributes:
compile
.prepare-package
.Name | Type | Since | Description |
---|---|---|---|
<features> |
File |
- |
Directory containing feature files Default value is: src/main/features . |
<testFeatures> |
File |
- |
Directory containing test feature files. Default value is: src/test/features . |
Name | Type | Since | Description |
---|---|---|---|
<bundlesStartOrder> |
int |
- |
Start Order of all included Dependencies. Default value is: -1 .User property is: bundleStartOrder . |
<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 . |
<featuresExcludes> |
String |
- |
Comma separated list of excludes for the feature files. Feature
files excluded by this configuration are not processed at all. |
<featuresIncludes> |
String |
- |
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 |
- |
Directory containing generated feature files |
<generatedFeaturesExcludes> |
String |
- |
Comma separated list of excludes for the generated feature files.
Feature files excluded by this configuration are not processed at
all. |
<generatedFeaturesIncludes> |
String |
- |
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 . |
<includeArtifactClassifier> |
String |
- |
Classifier of the feature the current artifact is included in. For
simple projects a artifact classifier is not needed but in multi
feature projects the classifier is used to find the appropriate
feature. User property is: includeArtifactClassifier . |
<includeArtifactExtension> |
String |
- |
Name of the extension to include the artifact in. If not specified
the artifact is included as a bundle. |
<includeClassifier> |
String |
1.3.0 |
Name of the classifier for the artifact to be included. By default
the main artifact (no classifier) will be included. |
<includeDependenciesWithScope> |
String[] |
- |
All listed dependency's scopes will be added to the descriptor. User property is: includeDependenciesWithScope . |
<includeType> |
String |
1.3.0 |
Name of the type for the artifact to be included. By default the
type of the main artifact is used. |
<jarStartOrder> |
int |
- |
The start level for the attached jar/bundle. |
<metadata> |
Map |
- |
Metadata for the included artifact. |
<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. |
<skipAddFeatureDependencies> |
boolean |
- |
If set to true the artifacts from the feature are not
as dependencies to the project.Default value is: false . |
<skipAddJarToFeature> |
boolean |
- |
If set to true the main jar artifact is not added to
the feature.Default value is: false . |
<skipAddJarToTestFeature> |
boolean |
- |
If set to true the main jar artifact is not added to
the test feature.Default value is: false . |
<skipAddTestFeatureDependencies> |
boolean |
- |
If set to true the artifacts from the test feature are
not as dependencies to the project.Default value is: true . |
<testFeaturesExcludes> |
String |
- |
Comma separated list of excludes for the test features. |
<testFeaturesIncludes> |
String |
- |
Comma separated list of includes for the test features. Default value is: **/*.json . |
<validateFeatures> |
boolean |
- |
If set to true the features are validated against the
JSON schema.Default value is: true . |
int
No
bundleStartOrder
-1
boolean
1.3.6
No
false
boolean
1.3.6
No
true
java.io.File
Yes
src/main/features
java.lang.String
No
java.lang.String
No
**/*.json
java.io.File
No
java.lang.String
No
java.lang.String
No
**/*.json
java.lang.String
No
includeArtifactClassifier
java.lang.String
No
java.lang.String
1.3.0
No
java.lang.String[]
No
includeDependenciesWithScope
java.lang.String
1.3.0
No
int
No
java.util.Map
No
java.lang.String
1.3.6
No
true
the artifacts from the feature are not
as dependencies to the project.boolean
No
false
true
the main jar artifact is not added to
the feature.boolean
No
false
true
the main jar artifact is not added to
the test feature.boolean
No
false
true
the artifacts from the test feature are
not as dependencies to the project.boolean
No
true
java.io.File
Yes
src/test/features
java.lang.String
No
java.lang.String
No
**/*.json
true
the features are validated against the
JSON schema.boolean
No
true