run mvn command in the foreground