diff --git a/.github/workflows/validate-config.yml b/.github/workflows/validate-config.yml
new file mode 100644
index 00000000..0c59269f
--- /dev/null
+++ b/.github/workflows/validate-config.yml
@@ -0,0 +1,47 @@
+name: Build and Publish
+
+on:
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 8
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: '8'
+
+ - name: Set settings.xml
+ uses: s4u/maven-settings-action@v2.8.0
+ with:
+ servers: |
+ [
+ {
+ "id": "mks-nexus-public",
+ "username": "${{ secrets.MEKOM_NEXUS_USERNAME }}",
+ "password": "${{ secrets.MEKOM_NEXUS_PASSWORD }}"
+ },
+ {
+ "id": "mks-nexus-public-snapshots",
+ "username": "${{ secrets.MEKOM_NEXUS_USERNAME }}",
+ "password": "${{ secrets.MEKOM_NEXUS_PASSWORD }}"
+ },
+ {
+ "id": "mks-nexus-private",
+ "username": "${{ secrets.MEKOM_NEXUS_USERNAME }}",
+ "password": "${{ secrets.MEKOM_NEXUS_PASSWORD }}"
+ },
+ {
+ "id": "mks-nexus-private-snapshots",
+ "username": "${{ secrets.MEKOM_NEXUS_USERNAME }}",
+ "password": "${{ secrets.MEKOM_NEXUS_PASSWORD }}"
+ }]
+ - name: Build and validate distro
+ run: mvn --batch-mode clean install -P prod -P validator
\ No newline at end of file
diff --git a/base/pom.xml b/base/pom.xml
index 1fe40fcf..7bef7153 100644
--- a/base/pom.xml
+++ b/base/pom.xml
@@ -24,6 +24,23 @@
1.0.0-SNAPSHOT
+
+
+
+ validator
+
+
+
+ maven-antrun-plugin
+
+
+ org.openmrs.maven.plugins
+ openmrs-packager-maven-plugin
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index b981fc20..56c275eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,54 @@
prod
+
+ validator
+
+
+
+
+ maven-antrun-plugin
+ 1.7
+
+
+ copy-config
+ pre-integration-test
+
+
+
+
+
+
+
+
+ run
+
+
+
+
+
+
+ org.openmrs.maven.plugins
+ openmrs-packager-maven-plugin
+ 1.7.0
+
+
+ validate-configurations
+ integration-test
+
+ validate-configurations
+
+
+
+ ${project.build.directory}/validator/configuration
+
+
+
+
+
+
+
+
@@ -105,6 +153,17 @@
+
+
+ openmrs-repo
+ OpenMRS Nexus Repository
+ https://mavenrepo.openmrs.org/nexus/content/repositories/public
+
+ false
+
+
+
+
Mekom Solutions Nexus repo for releases
diff --git a/prod/pom.xml b/prod/pom.xml
index 41d85a87..cb25e6fd 100644
--- a/prod/pom.xml
+++ b/prod/pom.xml
@@ -43,6 +43,23 @@
+
+
+ validator
+
+
+
+ maven-antrun-plugin
+
+
+ org.openmrs.maven.plugins
+ openmrs-packager-maven-plugin
+
+
+
+
+
+