[
https://jira.codehaus.org/browse/MHIBERNATE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283582#comment-283582
]
Johann Reyes commented on MHIBERNATE-123:
-----------------------------------------
Ok, I see that maven 2 has that dependency, while maven 3 doesn't carry that
dependency. Without that dependency, the plugin doesn't run in maven 3.
Can you also post your project dependencies or pom.xml to see what are you
using in your project and also your log by doing something like this
mvm -X hibernate3:hbm2ddl > output.txt
> 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
>
> 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