Accelerator POM Parent - Source
home
This asset is a component of MuleSoft Accelerators, which are a collection of technical assets (predominantly API specifications and implementation templates) and documentation to accelerate the implementation of multiple use cases supporting a larger business or industry problem.
The accelerator-pom-parent project is used for storing common configurations, constants, common dependencies, and resources used across all the child projects. It provides a single Maven configuration file (POM), which is used as the parent by most other accelerator projects.
To view the source code for this project, download the asset and extract the contents to a temporary folder. The archive contains a single project folder, which can be moved/copied to the desired location or imported into Studio as an existing general project.
Customizations
To make changes to the Parent POM file:
- Download the Accelerator POM Parent asset and extract the archive to a temporary directory.
- Import the extracted
accelerator-pom-parentfolder into Studio using theExisting Projects into Workspacewizard (select theCopy projects into workspaceoption, if desired). - Before making any changes, edit the
pom.xmlfile and increment the version number of the actual artifact (e.g.,<version>2.0.1</version>). It is important to update the version number to avoid having stale references in your local Maven repository.
To make your changes available to other applications:
- Edit the install script for your platform (e.g.,
install.cmdfor Windows) and update the value of theVERSIONvariable to match the one in thepom.xmlfile. - Run the install script from the command line to have Maven install the updated version in the local repository.
- In each application you wish to update, change the value of the parent version to match the new POM.
To make the new version available to other developers:
- Deploy it to your own Anypoint Exchange instance.
- Edit the
pom.xmlfile again and set thegroupIdvalue to the Business Group ID of the target Anypoint instance. - Update the deploy script (e.g.,
deploy.shon Linux/MacOS) to set theVERSIONvariable as described above and then run the script. Each application that needs to use the new version must change thegroupIdvalue in the parent to match the one you used for parent POM deployment.