record and copy maven log