[ 
https://jira.codehaus.org/browse/MHIBERNATE-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298485#comment-298485
 ] 

Alexander Wagner commented on MHIBERNATE-123:
---------------------------------------------

A workaround which solved this issue for me, is to add the following dependency 
to the plugin dependencies:

<dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.5.8</version>
</dependency>
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
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


Reply via email to