How to cohexist lombok and JPAMetalModel processors with maven

前端 未结 3 921
名媛妹妹
名媛妹妹 2021-02-14 05:27

How to use Lombok when JPAMetaModelEntityProcessor annotation processor is activated in the maven build.

Maven config:

[...]

    

        
3条回答
  •  -上瘾入骨i
    2021-02-14 05:41

    The Solution if @Pierrick is not totally correct. You have to switch the order of the processors.

    
        maven-compiler-plugin
        
            
                
                    lombok.launch.AnnotationProcessorHider$AnnotationProcessor,org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor
                
            
        
    
    

提交回复
热议问题