How to build OH Core Distro?

I am working on a PR that impacts many modules in OH core. I can build the openhab-core package using ‘mvn clean install’. My question is how to build a snapshot distro from this, so I can test the full OH system via a clean new installation? I would like to build a snapshot distro to test on Windows.

Just clone openhab-distro and run a Maven build on it. After that there will be a .tar.gz and .zip file in /distributions/openhab/target/ which you can extract and test.