Setting the generated source directory for annotation processors in Maven

前端 未结 7 1382
南方客
南方客 2021-02-09 20:01

I\'m trying to move a build which generates sources using an annotation processor to Maven. I\'ve tried configuring the maven-compiler-plugin as follows:

    <         


        
7条回答
  •  佛祖请我去吃肉
    2021-02-09 20:41

    I had this issue with GWTP Source Generate APT Processing annotations

    It was because I didn't set a version for the compiler plugin, my final setup:

    
        org.apache.maven.plugins
        maven-compiler-plugin
        3.0
        
            1.6
            1.6
            
            ${generated.sources}
            
                com.gwtplatform.dispatch.annotation.processor.GenEventProcessor
                com.gwtplatform.dispatch.annotation.processor.GenDtoProcessor
                com.gwtplatform.dispatch.annotation.processor.GenDispatchProcessor
            
        
    
    

提交回复
热议问题