maven compilation failure

前端 未结 18 2226
不知归路
不知归路 2020-12-07 17:57

I have a weird problem - Some class file couldn\'t be read during maven build.

  1. I have a project A and project B.
  2. Project
18条回答
  •  余生分开走
    2020-12-07 18:30

    Just now I also met the problem

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project entry-api: Compilation failure: Compilation failure:
    
    package com.foo.entry.common.domain does not exist
    package com.foo.entry.common.model does not exist
    package com.foo.entry.common.service does not exist
    package com.foo.entry.common.util does not exist
    

    Took a long time got the reason, that is one of the dependency jar is spring boot fat jar, so the solution is move below code in its pom.xml

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
    

提交回复
热议问题