spring - 包含项目的生成源阶段已损坏
问题描述
我有一个项目在其 pom.xml 中定义了一个模块:
<modules>
<module>mytestmodule</module>
</modules>
该模块spring-boot-starter-parent
用作其父级。此外,该模块在其 pom.xml 中使用插件jooq.codegen-maven
从数据库生成源文件:
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<jdbc>
<driver>xxx</driver>
<url>xxx</url>
<user>xxx</user>
<password>xxx</password>
</jdbc>
<generator>
<target>
<packageName>org.jooq.schema</packageName>
<directory>src/main/java</directory>
</target>
</generator>
</configuration>
</execution>
</executions>
</plugin>
当我generate-sources
从模块目录运行阶段时,它会在模式目录中正确生成源文件。但是,当我从包含项目(父目录)运行命令时,它不仅不会生成源文件,而且还会删除它们。如何解决这个问题?
解决方案
推荐阅读
- c++ - QListWidget 行相互重叠
- google-app-engine - 在 Google Cloud Platform 中解释成本数据
- ios - 使用 Firebase Analytics,我将如何在 iOS 上使用浅色模式和深色模式跟踪/查看用户?
- vb.net - 检查 YouTube 频道是否正在直播
- elasticsearch - 如何根据溢出的小时范围过滤弹性搜索文档?
- jmeter - 具有 xml 数据的 jtl 报告无法在 jmeter 中创建 html
- javascript - 如何进行正确的搜索查询以在 firebase 上的数组中查找对象 - firestore
- r - rShiny 中的空白 ggplot 图故障排除
- mysql - LEFT JOIN 未返回正确的结果集
- javascript - 通过 DOM 元素的 Javascript 循环对于异步脚本是不可靠的