To run selenium Task CMD to project's location and use:
- mvn -Dsurefire.suiteXmlFiles=src/test/resources/TestSuites/LegoSuite.xml -Dbrowser=Chrome test
- Using InteliJ Run configuration.
Edge can be chosen too via -Dbrowser=Edge or not even passing this parameter because this default choice for my framework.

Target Java version is 11. Change <maven.compiler.target>11</maven.compiler.target> in pom.xml to your choice of Java. If new java downloaded don't forget to create enviroment variables in Windows.