How to configure maven hbm2hbmxml and hbm2java to run one after the other in mvn clean install

前端 未结 6 1377
一向
一向 2020-12-05 12:37

I need to be able to call mvn clean install and have maven call hibernate3:hbm2hbmxml to generate the mapping files from a database and after than call hbm2java to get the J

6条回答
  •  时光取名叫无心
    2020-12-05 13:09

    Working Example for hibernate3-maven-plugin version 3.0 & hbm2java

    
        hbm2java
        
        
            
            org.codehaus.mojo
            hibernate3-maven-plugin
            3.0
            
                
                
                    
                
                
                
                
            
            
                
                
                    hbm2java
                
                
                compile
                
            
            
                
                org.hibernate
                hibernate-core
                3.3.2.GA
                
                
                cglib
                cglib-nodep
                2.1_3
                
                
                com.oracle.jdbc
                ojdbc6
                ${ojdbc6.version}
                
            
            
        
        
    
    

提交回复
热议问题