Accelerator POM Parent - Source
Customizations
To make changes to the POM Parent file:
- Download the Accelerator POM Parent asset and extract the archive to a temporary directory.
- Import the extracted
accelerator-pom-parent
folder into Studio using theExisting Projects into Workspace
wizard (select theCopy projects into workspace
option, if desired). - Before making any changes, edit the
pom.xml
file 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.cmd
for Windows) and update the value of theVERSION
variable to match the one in thepom.xml
file. - 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.xml
file again and set thegroupId
value to the Business Group ID of the target Anypoint instance. - Update the deploy script (e.g.,
deploy.sh
on Linux/MacOS) to set theVERSION
variable as described above and then run the script. Each application that needs to use the new version must change thegroupId
value in the parent to match the one you used for parent POM deployment.