fix bug: LogWriter marks 'started' when it can not open the log file.
change version to 0.3.1-RELEASE
add generate sources plugin to pom.xml