我在Biz工程里用到了mapStruct,配置了相应的pom,编译执行都没问题。但是Biz镜像打包推送的时候报错

Blade 未结 1 883
菲哥
菲哥 2022-03-29 10:25

一、该问题的重现步骤是什么?

  1. 我在Biz工程里用到了mapStruct,配置了相应的pom,编译执行都没问题。但是Biz镜像打包推送的时候报一个错误。看了半天,无从下手,翼总有思路吗?

  2. 834A65835EFDC5D0C2C75D4D540436FB.png



    
        blade-service
        org.springblade
        2.7.2.RELEASE
    
    4.0.0

    kxk-pms
    ${project.artifactId}
    ${bladex.project.version}
    jar

    
        
            org.springblade
            blade-core-boot
        
        
            org.springblade
            blade-starter-swagger
        
        
            
            
        
        
            
            
        
        
            com.baomidou
            dynamic-datasource-spring-boot-starter
            2.5.6
        
        
            org.springblade
            blade-core-test
            test
        
        
            org.springblade
            blade-core-auto
            provided
        
        
        
            org.springblade
            blade-dict-api
            ${bladex.project.version}
        
        
            org.springblade
            kxk-apijson-pms-api
            ${bladex.project.version}
        
        
            org.springblade
            kxk-pms-api
            ${bladex.project.version}
            compile
        
        
            org.springblade
            kxk-cms-api
            ${bladex.project.version}
            compile
        
        
            org.springblade
            blade-system-api
            ${bladex.project.version}
        
        
            org.springblade
            blade-user-api
            ${bladex.project.version}
        
        
        
            org.springblade
            blade-starter-excel
            ${bladex.project.version}
        

        
        
            org.mapstruct
            mapstruct
            ${org.mapstruct.version}
        
        
        
            org.mapstruct
            mapstruct-processor
            ${org.mapstruct.version}
        
    


    
        
            
                com.spotify
                dockerfile-maven-plugin
                
                    ${docker.username}
                    ${docker.password}
                    ${docker.registry.url}/${docker.namespace}/${project.artifactId}
                    ${project.version}
                    true
                    
                        target/${project.build.finalName}.jar
                    
                    false
                
            
            
                org.apache.maven.plugins
                maven-antrun-plugin
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.8.1
                
                    1.8
                    1.8
                    
                        
                        
                            org.projectlombok
                            lombok
                            ${lombok.version}
                        
                        
                            org.mapstruct
                            mapstruct-processor
                            ${org.mapstruct.version}
                        
                    
                
            
        
    


2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  •  菲哥
    菲哥 (楼主)
    2022-03-29 11:22

    解决了。找了篇文章设置了下。

    解决 MapStruct 和 Lombok 冲突问题

    https://www.jianshu.com/p/f7f59f4347bc

    0 讨论(0)
提交回复