Unable to use Intellij with a generated sources folder

后端 未结 11 1858
孤城傲影
孤城傲影 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:49

    You can just change the project structure to add that folder as a "source" directory.

    Project Structure → Modules → Click the generated-sources folder and make it a sources folder.

    Or:

    
        org.codehaus.mojo
        build-helper-maven-plugin
        1.4
        
            
                test
                generate-sources
                
                    add-source
                
                
                    
                        ${basedir}/target/generated-sources
                    
                
            
        
    
    

提交回复
热议问题