这是分开的数据库.properties文件被过滤,但由于它是一个
测试
/src/main/test
它不会被放入最后的人工制品中。然后我告诉hbm2ddl在哪里可以找到它,如下所示:
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>jpaconfiguration</implementation>
</component>
</components>
<componentProperties>
<propertyfile>src/test/resources/database.properties</propertyfile>
<persistenceunit>myapp-core</persistenceunit>
<outputfilename>create-${database.vendor}-schema.sql</outputfilename>
<format>true</format>
<export>false</export>
<console>false</console>
</componentProperties>
</configuration>
希望它能帮上忙。。。。