【发布时间】:2013-12-11 21:07:59
【问题描述】:
我找到了ddl-generation 的此页面,我当前的代码如下所示:
<plugin>
<!-- run "mvn clean install -Dmaven.test.skip=true -X hibernate3:hbm2ddl" to generate a schema -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>jpaconfiguration</implementation>
</component>
</components>
<componentProperties>
<persistenceunit>Default</persistenceunit>
<outputfilename>schema.ddl</outputfilename>
<drop>false</drop>
<create>true</create>
<export>false</export>
<format>true</format>
</componentProperties>
</configuration>
</plugin>
使用命令“mvn clean install -Dmaven.test.skip=true -X hibernate3:hbm2ddl”可以正常工作,但 ddl 不会由“mvn clean install”生成。 我该如何更改?
谢谢!
【问题讨论】:
标签: java hibernate maven plugins ddl