Skip to content

Latest commit

 

History

History

maven-goal-log-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Maven Goal Log Parser

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 to MavencompilerCompile, omit the trailing plugin of the plugin name).
  • Add a new instance of the parser class to the goalParserList of the class MavenGoalLogParser.
  • 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.