[
https://jira.codehaus.org/browse/MHIBERNATE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Zemnitskiy updated MHIBERNATE-123:
-----------------------------------------
Attachment: pom.xml
out.txt
Added pom.xml and out.txt by your request
It is almost surely that ant task fails due to logging problems - we decided to
solve this problem by using antrun directly rather than from hibernate3 plugin,
and it failed with complaint that logger for org.hibernate... is not configured
properly, until we used slf4j-log4j and properly configured path to log4j.xml
using system properties.
In case it helps:
D:\Projects\r2d0maven>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)
Maven home: D:\Applications\maven
Java version: 1.6.0_18, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_18\jre
Default locale: ru_RU, platform encoding: Cp1251
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
> build success is reported but no schema is generated.
> -----------------------------------------------------
>
> Key: MHIBERNATE-123
> URL: https://jira.codehaus.org/browse/MHIBERNATE-123
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Bug
> Components: hbm2ddl
> Affects Versions: 3.0
> Reporter: Dmitry Zemnitskiy
> Assignee: Johann Reyes
> Attachments: out.txt, pom.xml
>
>
> mvn hibernate3:hbm2ddl reports success but no *.sql file is created neither
> database is modified
> it is not possible to see what happens, due to suppressed logging, but
> probably this is also a reason why task fails
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/C:/Users/User/.m2/repository/org/slf4j/slf4j-nop/1.6.1/slf4j-nop-1.6.1.jar!/org/slf4j
> /impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/C:/Users/User/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/s
> lf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> [INFO] Executed tasks
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> configuration is following:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>hibernate3-maven-plugin</artifactId>
> <version>3.0-SNAPSHOT</version>
> <configuration>
> <hibernatetool>
> <annotationconfiguration
>
> configurationfile="${basedir}/hibernate.xml" />
> <hbm2ddl export="true"
> update="true" console="true" outputfilename="schema.sql"
> format="true" />
> </hibernatetool>
> </configuration>
> </plugin>
> actually what was a reason that slf4j-nop added to dependencies? due to
> http://jira.codehaus.org/browse/MNG-2448 it is not possible to exclude it in
> project's pom
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email