要配置help
mojo 的生成,请将以下内容添加到项目的 POM:
<project> ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>3.6.4</version> <executions> <execution> <id>generated-helpmojo</id> <goals> <goal>helpmojo</goal> </goals> </execution> </executions> </plugin> </plugins> ... </build> ... </project>
mojo 默认生成在${project.build.directory}/generated-sources/plugin
.