[ 
https://issues.apache.org/jira/browse/MNG-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954438#comment-17954438
 ] 

Guillaume Nodet commented on MNG-8609:
--------------------------------------

This may be a semantic problem.  When we talk about a project's dependencies, 
we usually talk about the actual artifacts, not the requirement.  So difficulty 
is that the resolution of an artifact is, most of the time, nothing, unless the 
dependency constraint undergo conflict resolution or something like that.
Anyway, I tried to make it more clear in the API by talking about "dependency 
coordinates", i.e. the requirement or constraint (expressed by a 
{{<dependency>}} xml element usually), and the resolved {{Dependency}}, which 
_is_ the actual artifact pointer, and the {{DownloadedDependency}} when the 
artifact has actually been downloaded.

The javadoc may certainly be enhanced on classes and package 
(https://github.com/apache/maven/blob/0710deb4fd9b132183597dbaed9734eeff621fa1/api/maven-api-core/src/main/java/org/apache/maven/api/package-info.java).

> Dependency is not an Artifact
> -----------------------------
>
>                 Key: MNG-8609
>                 URL: https://issues.apache.org/jira/browse/MNG-8609
>             Project: Maven
>          Issue Type: Bug
>          Components: API
>            Reporter: Elliotte Rusty Harold
>            Priority: Blocker
>             Fix For: 4.1.0
>
>
> org.apache.maven.api.Dependency extends org.apache.maven.api.Artifact. This 
> violates the OO principal that inheritance represents an is-A relation. A 
> dependency is not an artifact. Arguably it has an artifact. However, 
> artifacts are nodes in the graph while dependencies are the arcs. These 
> aren't the same thing and mixing them up is a common source of confusion. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to