In WSO2 Enterprise Integrator, you cannot install new features via management console. That option has been removed. So in order to install a feature, we must use the POM based feature installation. This is explained in WSO2 docs [1]. There few changes you need to made in order to this POM.xml to work.
[1] - https://docs.wso2.com/display/Carbon440/Installing+Features+using+pom+Files
- The "destination" element value should be changed to, "wso2ei-6.0.0/wso2/components".
- Value of the "dir" attribute in "replace" element should be, "wso2ei-6.0.0/wso2/components/default/configuration/org.eclipse.equinox.simpleconfigurator".
Optionally, Other than downloading p2 repo (which is over 2GB), the URL to P2 repo "http://product-dist.wso2.com/p2/carbon/releases/wilkes/" can be set as "metadataRepository" and "artifactRepository".
Following is a sample pom.xml that is used to install HL7 feature in EI.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.wso2.sample</groupId> | |
<artifactId>sample-feature-installation</artifactId> | |
<version>1.0.0</version> | |
<packaging>pom</packaging> | |
<name>New feature</name> | |
<url>http://wso2.org</url> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.wso2.maven</groupId> | |
<artifactId>carbon-p2-plugin</artifactId> | |
<version>1.5.4</version> | |
<executions> | |
<execution> | |
<id>feature-install</id> | |
<phase>package</phase> | |
<goals> | |
<goal>p2-profile-gen</goal> | |
</goals> | |
<configuration> | |
<profile>default</profile> | |
<metadataRepository>http://product-dist.wso2.com/p2/carbon/releases/wilkes/</metadataRepository> | |
<artifactRepository>http://product-dist.wso2.com/p2/carbon/releases/wilkes/</artifactRepository> | |
<destination>wso2ei-6.0.0/wso2/components</destination> | |
<deleteOldProfileFiles>false</deleteOldProfileFiles> | |
<features> | |
<feature> | |
<id>org.wso2.carbon.hl7.feature.group</id> | |
<version>4.6.6</version> | |
</feature> | |
</features> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.1</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<configuration> | |
<tasks> | |
<replace token="false" value="true" dir="wso2ei-6.0.0/wso2/components/default/configuration/org.eclipse.equinox.simpleconfigurator"> | |
<include name="**/bundles.info"/> | |
</replace> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<repositories> | |
<repository> | |
<id>wso2-nexus</id> | |
<name>WSO2 internal Repository</name> | |
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url> | |
<releases> | |
<enabled>true</enabled> | |
<updatePolicy>daily</updatePolicy> | |
<checksumPolicy>ignore</checksumPolicy> | |
</releases> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>wso2-maven-releases-repository</id> | |
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url> | |
</pluginRepository> | |
<pluginRepository> | |
<id>wso2-maven-snapshots-repository</id> | |
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url> | |
</pluginRepository> | |
</pluginRepositories> | |
</project> |
[1] - https://docs.wso2.com/display/Carbon440/Installing+Features+using+pom+Files