你可以使用build-helper添加新的源目录:
<build> <plugins> <plugin> <groupId>org.prehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>src/main/generated</source> </sources> </configuration> </execution> </executions> </plugin> </plugins></build>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)