views:

36

answers:

0

I can control hibernate logging from within my application just fine, but during a system build, the hibernate3-maven-plugin runs hbm2ddl and this is spewing tons of useless INFO log messages to the console:

21:51:57,383  INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
21:51:57,394  INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA
21:51:57,407  INFO org.hibernate.cfg.Environment - hibernate.properties not found
21:51:57,427  INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
21:51:57,439  INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
21:51:57,515  INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
21:51:57,518  INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.4.0.GA

I was able to stop hbm2ddl from spewing the DDL to the console via configuration of the plugin in my pom.xml:

<componentProperties>
   .........
   <!-- Do not print the DDL to the console -->
   <console>false</console>
</componentProperties>

However, I have not found a property to control the logging.

Presumably if I knew the correct place I could stick a log4j.xml file in there to stop it. But where? What is the directory from which the plugin is run?