Command prompt command for getting logs in both console & log file
powershell -Command "mvn clean install | Tee-Object -FilePath output.log"