Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Debug mode only for one plugin

Is there a way to enable Maven debug mode (-X) in order to get debug info which is related only to concrete execution of a maven plugin?
Debug info for all maven steps are too huge to keep and analyze it.

like image 239
Anton Balashov Avatar asked Oct 23 '14 10:10

Anton Balashov


Video Answer


1 Answers

You can set up logging on the command line using info given here:

  • https://maven.apache.org/maven-logging.html

Here's an example of setting logging level to info for help plugin only:

mvn help:evaluate -Dexpression=project.version -q -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.help=info

Hope this helps.

like image 150
levant pied Avatar answered Sep 22 '22 09:09

levant pied