Local Implementation of Jenkins - Windows

Good day, everyone.
I am trying to build the Jenkins controller branch locally on Windows 10 with mvn install
It’s running extremely slowly and taking hours.
Is there a recommended setup for building Jenkins on Windows, or should I use WSL2 instead?

Instead of running mvn install, use the quick build profile as documented in the contributing guide. That command is:

mvn -am -pl war,bom -Pquick-build clean install

Jenkins core builds and most Jenkins plugin builds are slower on Windows than on Linux. The Windows file system seems to not perform as well as Linux file systems for Jenkins core builds. However, if you upgrade to Windows 11, you can gain further performance improvements by configuring a Microsoft DevDrive. A Microsoft blog post describes it further:

Thank you so much! I later implemented it using docker.