[英]See Maven Dependencies in Repository Scan (jQAssistant)
I ran a jQAssistant scan on my Maven repository. 我在Maven存储库上运行了jQAssistant扫描。 Now I can see some information, but unfortunately, if I try 现在我可以看到一些信息,但是不幸的是,如果我尝试
MATCH (a:Maven:Artifact) --> (b:Maven:Artifact) RETURN a
I see no results although there should be DEPENDS_ON connections between Artifacts. 我看不到任何结果,尽管在工件之间应该有DEPENDS_ON连接。 Is there some extra switch for the scan to also find these arcs? 是否有一些额外的开关可进行扫描以找到这些电弧?
If you're scanning a Maven repository there are no direct dependencies between artifacts, this is only the case if you're scanning a Maven reactor (ie using the Maven plugin). 如果您正在扫描Maven存储库,则工件之间没有直接的依赖关系,只有在您正在扫描Maven反应器(即使用Maven插件)的情况下,情况才如此。 In case of a repository you have the following structure: 对于存储库,您具有以下结构:
The following query returns all Poms, the artifacts which each of them describes and the dependencies that are declared: 以下查询返回所有Pom,每个Pom描述的工件以及声明的依赖项:
MATCH
(:Repository)-[:CONTAINS_POM]->(pom:Pom),
(pom)-[DESCRIBES]->(artifact:Artifact),
(pom)-[:DECLARES_DEPENDENCY]->(dependency:Artifact)
RETURN
pom.fqn, collect(artifact.name), collect(dependency.fqn)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.