You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2025/03/26 11:20:00 UTC

[jira] [Updated] (MNG-8609) Dependency is not an Artifact

     [ https://issues.apache.org/jira/browse/MNG-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated MNG-8609:
---------------------------------
    Fix Version/s: 4.1.0

> 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)