On Wed, 19 Apr 2006, Kenney Westerhof wrote:

Update: I just found out the ArtifactResolutionResult contains information
about where an artifact came from, so please ignore this mail :)

(although it would be nice to easily access this info from the
MavenProject without having to re-resolve everyting)..

-- Kenney
>
> Hi,
>
> I just realized that it's possible to get non-transitive dependencies
> from a POM (with the use of the ArtifactResolver), but it's not possible
> to get the dependencies that are _actually_ declared in that POM:
> they have already been merged with the parent's dependencies declarations.
>
> Can we add a field 'declaredDependencies' either in the Model
> or in MavenProject that will get a copy of the Dependencies section
> and will not be touched by merging/transitive dependency
> handling/inheritance? This would make it a lot easier to display
> what was declared where since this information is totally lost now.
>
> Maybe a more elegant solution would be to add a field to Artifact
> (or extend it) that will be filled in with a 'declaring artifact'
> which contains g:a:v of the POM that declared/brought in this dep.
>
> Comments, thoughts?
>
> -- Kenney
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to