我正在做一个Dubbo项目,当我深入了解它的源代码时。我在Dubbo的源代码中找到了这些代码:

我认为这表明我的项目缺少org.jboss.*包(IDEA将这些包标记为红色)
但是不知怎么的,这个项目仍然有效,不是因为它缺少了一些软件包而不能工作吗?
顺便说一下,我的项目是由gradle组织的,build.gradle是这样的:
dependencies
{
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
compile group: 'org.apache.dubbo', name: 'dubbo-spring-boot-starter', version: '2.7.8'
compile group: 'org.apache.zookeeper', name: 'zookeeper', version: '3.6.2'
compile group: 'org.apache.curator', name: 'curator-framework', version: '5.1.0'
}发布于 2020-10-07 02:27:16
如果这不是某个库的非编译字节码,而是应用程序的源代码,那么这将是一个问题。它并没有遗漏任何东西,但是Gradle会按需引入org.jboss.netty,然后再引入另外8个库,这些库甚至可能会吸引更多的库。
https://stackoverflow.com/questions/64236175
复制相似问题