场景:springboot构建多模块helloserviceapi和helloservice,其中helloservice引用helloserviceapi的jar包,打包B模块时报错,如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hello-service: Compilation failure: Compilation failure:
[ERROR] /D:/WorkSpace/IntelliJIDEA/spring-cloud/spring-cloud/hello-service/src/main/java/com/example/helloservice/Controller/RefactorHelloController.java:[3,39] �����com.example.helloserviceapi.dto������
[ERROR] /D:/WorkSpace/IntelliJIDEA/spring-cloud/spring-cloud/hello-service/src/main/java/com/example/helloservice/Controller/RefactorHelloController.java:[4,43] �����com.example.helloserviceapi.service������
[ERROR] /D:/WorkSpace/IntelliJIDEA/spring-cloud/spring-cloud/hello-service/src/main/java/com