This article explains how to deploy a mule extension with a POM hierarchy to the exchange. POM hierarchy in a mule extension project is structured in such a way that, its POM file have parent POM, which in turn have its own parent POM and so on.
Below is the sample for mule extension POM and its parent POM, it's a simple example of a hierarchy where there is a parent POM for a mule extension.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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>{organization_id}</groupId>
<artifactId>mule-basic-extension</artifactId>
<version>1.0.5</version>
<packaging>mule-extension</packaging>
<name>Basic Extension</name>
<parent>
<groupId>{organization_id}</groupId>
<artifactId>modules-parent</artifactId>
<version>1.0.0</version>
<relativePath>../parent</relativePath>
</parent>
<distributionManagement>
<repository>
<id>{repository_id}</id>
<name>{repository_name}</name>
<url>https://maven.anypoint.mulesoft.com/api/v1/organizations/{organization_id}/maven</url>
<layout>default</layout>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-imaging</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
<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>
<parent>
<groupId>org.mule.extensions</groupId>
<artifactId>mule-modules-parent</artifactId>
<version>1.1.2</version>
<relativePath/>
</parent>
<distributionManagement>
<repository>
<id>{repository_id}</id>
<name>{repository_name}</name>
<url>https://maven.anypoint.mulesoft.com/api/v1/organizations/{organization_id}/maven</url>
<layout>default</layout>
</repository>
</distributionManagement>
<groupId>{organization_id}</groupId>
<artifactId>modules-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
</project>
001114531

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.