Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] how to capture information about missing dependencies

Igor Fedorenko wrote:

If RepositorySystem#collectDependencies returns successfully, returned
CollectResult has no exceptions, collected dependency tree includes
DependencyNode for the missing dependency as if it is present. I can see
a WARN message about the missing dependencies but no other indication
there was a problem, and nothing I can use programatically as far as I
can tell. I have a small example that demonstrates this behaviour, if
you are interested.

I believe you are referring to the warning about the missing POM, not the actual dependency JAR/etc. The described CollectResult matches the expectations for a session whose ArtifactDescriptorPolicy is set to ignore missing POMs as Maven does.

If RepositorySystem#collectDependencies throws
DependencyCollectionException, there is a way to find missing
dependencies, but the missing dependencies do not have corresponding
DependencyNode so I can't tell what requires them. I've only seen this
behaviour in a problem with rather complex set of dependencies and not
sure what triggers this behaviour.

The collected exceptions should tell.

Can you explain how this is expected to work? Do you have a working
example I can use as copy&paste source? Thank you in advance.

I don't recall a nice way to determine the path to all missing dependencies so I suggest you fill a sufficiently detailed feature request.


Benjamin



Back to the top