java - Redirect commons-logging output in Maven3 Mojo -


for flyway maven plugin, need call number of libraries log using commons-logging (flyway, spring, ...)

in maven2, use maven-plugin-log4j accomplish this. output looks like:

[info] [flyway:history {execution: default-cli}] [info] hsql not support locking. no concurrent migration supported. 

in maven3 however, doesn't work well:

[info] --- flyway-maven-plugin:1.3.2-snapshot:history (default-cli) @ flyway-sample --- 15.04.2011 09:49:10 com.googlecode.flyway.core.dbsupport.hsql.hsqldbsupport <init> info: hsql not support locking. no concurrent migration supported. 

how can clean logging output in maven3?

you should use abstractmojo.getlog() use maven provided logger.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -