...
Parameter | Description | Mandatory | Example | |||||
---|---|---|---|---|---|---|---|---|
id | The Id of the feature being generated. | No | <id>org.wso2.carbon.core.feature</id> | |||||
copyright | The copyright text that should be attached to the | No | <copyright>COPYRIGHT</copyright> | |||||
licenceUrl | The license URL that should be given in the | No | <licenseUrl>LICENSE_URL</licenseUrl> | |||||
licence | The license that should be attached to the feature.xml file. | No | <license>LICENSE</license> | |||||
manifest | This points to the location of the manifest file. The content in this file is considered if the manifest is present when generating the | No | <manifest>LOCATION_OF_THE_MANIFEST_FILE</manifest> | |||||
propertyFile | This points to the location of the properties file. Properties of the property file (if exists) are merged with the properties passed to the Maven goal through the | No |
| |||||
properties | A collection of key-value pairs passed to the Maven goal, which should be written to the | Yes |
| |||||
adviceFile | Content to be written to the | Yes |
| |||||
bundles | Specifies the OSGI bundles that should be included in the feature being created. These bundles should be given as maven coordinates. The P2 plugin supports 3 variations as shown below:
If the 1st bundle format is used, the default value for compatibility, which is “equivalent” is used. The following values are permitted for compatibility;
| No | - | |||||
includeFeatures | Carbon features that need to be included in the feature being built are specified using the
If the term “optional” is given as a | No | - | |||||
importFeatures | The dependant features for the feature being built are included here. These import features are included in the
By default, the compatibility is set to "equivalent". If compatibility is set to “optional” then this import feature is marked as “optional” and the compatibility is set to “equivalent”. The following values are permitted for compatibility;
| No |
- |
Anchor | ||||
---|---|---|---|---|
|
P2-repo-gen
Maven goal...
Parameter | Description | Mandatory | Example | ||
---|---|---|---|---|---|
name | The name of the newly created artifact repository. If you do not specify this, the artifact ID of the project is taken by default. | Yes | <name>LOCATION_OF_THE_MANIFEST_FILE</name> | ||
metadataRepository | The URL of the location where the metadata repository should be created. | <metadataRepository>file:/home/p2-repo</metadataRepository> | |||
artifactRepository | The URL of the location where the artifact repository should be created. Important: For carbon, both artifacts and metadata reside in the same repository. Therefore, the value for both | Yes |
| ||
featureArtifacts | The set of features that need to be included in the repository are passed to the
If the version is not given, the plugin tries to extract the version from the project’s dependency list. The maven goal will search for the given artifact in the local .m2 repository. If it is not found there, the goal will search in the configured remote repositories. Not finding the artifact may cause the maven goal to terminate with a BUILD FAILURE. Important: For the plugin to work properly, the artifact representing each feature is required to be specified as a maven dependency. | Yes | -
| ||
bundleArtifacts | The set of bundles that need to be included in the repository are passed to the
If the version is not given, the maven goal will search for the given artifact in the local .m2 repository to resolve the version. If it is not found there, the goal will search in the the configured remote repositories. Not finding the artifact may cause the maven goal to terminate with a BUILD FAILURE. So for the plugin to work properly, the artifact representing each bundle needs to be specified as a maven dependency. | Yes | -
| ||
archive | Specifies whether the generated artifact should be archived or not. This is a boolean value. Thus, permitted values are either t rue or f alse . The default value is false. | No | <archive>false</archive> |
...
Parameter | Description | Mandatory | Example |
---|---|---|---|
metadataRepository | The URL of the location where the metadata repository should be created. | Yes | <metadataRepository>file:/home/p2-repo</metadataRepository> |
artifactRepository | The URL of the location where the artifact repository to be created. Important: For carbon, both artifacts and metadata reside in the same repository. Therefore, the value for both | Yes | <artifactRepository>file:/home/p2-repo</artifactRepository> |
targetPath | Points to the components folder of the Carbon product in which the profile is being created. | Yes | <targetPath>file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components</targetPath> |
profile | Name of the profile to be created. | Yes | <profile>worker</profile> |
productConfiguration | Location of the .product file. | Yes | <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile> |
...
Parameter | Description | Mandatory | Example | |||||||
---|---|---|---|---|---|---|---|---|---|---|
destination | Points to the | Yes |
| |||||||
profile | The profile which needs to be updated with the new set of features in the destination. | Yes | <profile>default</profile> | |||||||
metadataRepository | The URL of the location where the metadata repository should be created. | Yes | <metadataRepository>file:/home/p2-repo</metadataRepository> | |||||||
artifactRepository | The URL of the location where the artifact repository to be created. Important: For carbon, both artifacts and metadata resides in the same repository. Therefore, the value for both | Yes | <artifactRepository>file:/home/p2-repo</artifactRepository> | |||||||
features | The features to be installed in the destination profile. Features that you add here should already exist in the P2 repository to which the
| Yes |
| |||||||
deleteOldProfileFiles | Specifies whether to delete old *.profile folders located in the <CARBON_HOME>/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/ directory. The default value is set to true . | No | <deleteOldProfileFiles>true</deleteOldProfileFiles> |