Parses the log of a Maven goal execution and maps information about errors and in which file and on which line and column they happened to the error-model.
The parser currently supports the following Maven goals and errors:
- maven-compiler-plugin-compile
- Could not resolve dependencies
- maven-surefire-plugin-test
Some parsers require to either parse the log of the executed goal, the build summary at the end of the maven build log, or both thos logs.
To add a parser for additional Maven goal logs, do the following:
- Create a new class extending the
GoalParser
. Adhere to the following naming convention: The class name consists of the plugin and goal name (e.g maven-compiler-plugin:compile becomes toMavencompilerCompile
, omit the trailing plugin of the plugin name). - Add a new instance of the parser class to the
goalParserList
of the classMavenGoalLogParser
. - Write the parser following the example of the
MavencompilerCompile
class. - Write tests for the new parser following the example of the tests for
MavencompilerCompile
. - Extend the list above with the Maven goal that is supported by the new parser.