0
我升級到休眠5,發現這個插件: -休眠5插件不考慮filename在<輸出目錄/>配置
<plugin>
<groupId>de.jpdigital</groupId>
<artifactId>hibernate5-ddl-maven-plugin</artifactId>
<version>1.0.1-hibernate-5.1.2.Final</version>
<configuration>
<dialects>
<param>SQLSERVER2008</param>
</dialects>
<packages>
<param>com.mypackage</param>
</packages>
<outputDirectory>${project.build.directory}/hibernate-schema.sql</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>gen-ddl</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
但是,當我們運行它,它不會創建我的名字文件「hibernate-schema.sql」,它將它創建爲目錄,文件名稱爲方言名稱「sqlserver2008.sql」。
有什麼辦法可以配置它來創建我的文件名爲「hibernate-schema.sql」。