开发者

Where to place generated sources in order to make them visible for testCompile goal?

开发者 https://www.devze.com 2023-02-16 03:07 出处:网络
maven-compiler-plugin:testCompile gets sources from ./src/test/java. How can I instruct it to use sou开发者_运维技巧rces from ./target/generated-sources/test as well?

maven-compiler-plugin:testCompile gets sources from ./src/test/java. How can I instruct it to use sou开发者_运维技巧rces from ./target/generated-sources/test as well?

Maybe they should be placed somewhere else to become visible for testCompile goal?


Ideally, the plugin generating these sources should configure the source folders for the compiler plugin. When these are not generated by a maven plugin, you can use the build-helper plugin to add additional folders. See the second example here.

0

精彩评论

暂无评论...
验证码 换一张
取 消