Skip to content

DeclaredMode: 准确提取 jar 的 identity #615

@lvjing2

Description

@lvjing2

Your question

如该 milestone 所描述,declaredMode 还存在如下的不完善地方,需要解决
https://github.com/sofastack/sofa-ark/milestone/21
image

这里解决其中第三个问题

从基座里查找出来的依赖,需要判断是否是模块里声明的逻辑在 isDeclared() 内,需要准确提取出 jar 里的 groupdId + artifactId, 但当前只提取了 artifactId, 如果基座和模块里有 groupId 不同 artifactId 相同的依赖,会被误认为也是允许委托加载的。

Actions

  1. 提取 artifaceId, 部分从 jar 名字和 pom.properties 都提取不出 artifactId 的能否有方式提取出。
  2. 提取出 jar 的 groupId
  3. 根据 groupId + artifactId 来判断该依赖在模块中是否声明,是否可以从基座中委托加载。

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions