2.4. Exporting a Business Central project to an external Maven repository
If you configured an external Maven repository for Business Central and KIE Server, you must add the repository information in the pom.xml
file for each Business Central project that you want to export or push as a KJAR artifact to that external repository. You can then progress the project KJAR files through the repository as necessary to implement your integration process, and deploy the KJAR files using Business Central or the KIE Server REST API.
Prerequisites
You configured Business Central and KIE Server to use an external Maven repository. If you deployed Business Central on-premise, for more information about configuring an external Maven repository, see 「Configuring an external Maven repository for Business Central and KIE Server」. If you deployed your authoring environment on Red Hat OpenShift Container Platform, for more information, see the following documents:
Procedure
- In Business Central, go to Menu → Design → Projects, click the project name, and select any asset in the project.
- In the Project Explorer menu on the left side of the screen, click the Customize View gear icon and select Repository View → pom.xml.
Add the following settings at the end of the project
pom.xml
file (before the</project>
closing tag). The values must correspond to the settings that you defined in yoursettings.xml
file.<distributionManagement> <repository> <id>${maven-repo-id}</id> <url>${maven-repo-url}</url> <layout>default</layout> </repository> </distributionManagement>
-
Click Save to save the
pom.xml
file changes.
Repeat this procedure for each Business Central project that you want to export or push as a KJAR artifact to the external Maven repository.