Error when compiling project distribution/server-dist

I want to compile the server distribution for that I run the command (having unzipped keycloak 16.1.1) :

mvn clean install --projects distribution/server-dist

But I get the following error:
[ERROR] [ERROR] Could not find the selected project in the reactor: distribution/server-dist @

My guess is that the error would be the same with the latest version.

I can’t find useful documentation for this error, any help appreciated.

To answer my own question, I just have to have a ‘distribution’ sub-module in the main pom.xml file.