How to cohexist lombok and JPAMetalModel processors with maven

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

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

Maven config:

[...]

    

        
3条回答
  •  Happy的楠姐
    2021-02-14 05:37

    The solution of @Pierrick is right. but I can offer this solution. because we can add many processors with this.

    
       maven-compiler-plugin
       
          
             
                org.projectlombok
                lombok
                ${lombok.version}
             
             
                 org.hibernate
                 hibernate-jpamodelgen
                 5.4.1.Final
             
          
       
    
    

提交回复
热议问题