我有一个Java Maven项目,具有以下结构。 (这是一个逻辑结构,不一定是确切的目录结构。)
项目| -Submodule| | -src / main / java目录| | -src /主/资源| | …
khmarbaise 我的评论让我意识到自己的错误,尽管我没有接受他的建议。
该 build-helper-maven-plugin 配置应该放在我最初拥有它的子模块pom(不是父pom)中。但是Maven不会为你创建这些目录, 您 创建目录,然后Maven使用它们。
build-helper-maven-plugin
一旦Maven使用您的新目录,Eclipse就会很好地显示它们。