如何让 Speedment 在构建时自动重新生成代码
How do I make Speedment regenerate code automatically on build
我设置了一个 Speedment 项目,但我不想 运行 GUI 工具,也不想在我的软件存储库 (GIT) 中签入生成的文件。如何让 Speedment 在构建时自动重新生成所有代码?
在您的 pom.xml
文件中,将执行标记添加到 speedment-maven-plugin
,如下所示:
<plugins>
<plugin>
<groupId>com.speedment</groupId>
<artifactId>speedment-maven-plugin</artifactId>
<version>${speedment.version}</version>
<executions>
<execution>
<id>Generate code automatically</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
我设置了一个 Speedment 项目,但我不想 运行 GUI 工具,也不想在我的软件存储库 (GIT) 中签入生成的文件。如何让 Speedment 在构建时自动重新生成所有代码?
在您的 pom.xml
文件中,将执行标记添加到 speedment-maven-plugin
,如下所示:
<plugins>
<plugin>
<groupId>com.speedment</groupId>
<artifactId>speedment-maven-plugin</artifactId>
<version>${speedment.version}</version>
<executions>
<execution>
<id>Generate code automatically</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>