[英]Cannot use interface or class from another local dependency module
Parent Project
|
|---pom.xml
|
|---Module A
| |---pom.xml
|
|---Module B
|---pom.xml
父级被声明为A和B的<父级>。
在A的pom.xml中,A取决于B:
<dependency>
<groupId>abc.b</groupId>
<artifactId>b</artifactId>
<version>0.1</version>
</dependency>
我正在使用A中B的接口,但是A找不到该接口:[ERROR]:找不到符号/封装。
我错过了一些依赖吗?
https://github.com/jianfeipan/ParisTraining/tree/master/server
父级:服务器
答:restapi
B:classService
我应该添加软件包...我的类直接在java /下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.