Unable to use Intellij with a generated sources folder

后端 未结 11 1867
孤城傲影
孤城傲影 2020-12-01 01:00

Related question How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin?

I have a cust

11条回答
  •  天涯浪人
    2020-12-01 01:43

    The fix

    Go to Project Structure - Modules - Source Folders and find the target/generated-sources/antlr4/com/mycompany - click Edit properties and set Package prefix to com.mycompany.

    This is exactly the reason why we can set Package prefix on source dirs.


    Different but related problem here

提交回复
热议问题