What is a Maven artifact?

后端 未结 9 898
悲哀的现实
悲哀的现实 2020-11-29 14:20

What is an artifact and why does Maven need it?

9条回答
  •  被撕碎了的回忆
    2020-11-29 15:12

    Q. What is Artifact in maven?
    ANS: ARTIFACT is a JAR,(WAR or EAR), but it could be also something else. Each artifact has,

    • a group ID (like com.your.package),
    • an artifact ID (just a name), and
    • a version string.
      The three together uniquely identify the artifact.

    Q.Why does Maven need them?
    Ans: Maven is used to make them available for our applications.

提交回复
热议问题