jar 文件会被视为工件吗?
Would a jar file be considered an artifact?
目前我正在学习 maven 并且在研究它时我在 Wikipedia 上遇到了以下定义:
In software development, a build is the process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so.
我假设在 java 中独立的工件将是 jar 文件,因为它是编译源代码的副产品并且它可以是 运行 独立的。但是我不确定是否会是这种情况。
在尝试理解术语时,维基百科永远只是次要来源。
Artifact: An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven for a project include: JARs, source and binary distributions, WARs. Each artifact is identified by a group id, an artifact ID, a version, an extension and a classifier (extension+classifier may be named by a type).
(可能还有比这更多的权威来源。如果有人能找到,请发表评论。)
所以,是的,根据 Maven 术语,JAR 是工件的一个示例。
请注意,就 Maven 使用该概念而言,JAR 不需要由 Maven 生成才能成为工件。您可以获取由(例如)运行 jar
命令手动生成的 JAR 文件,然后通过将其添加到本地存储库来为其赋予工件坐标。
目前我正在学习 maven 并且在研究它时我在 Wikipedia 上遇到了以下定义:
In software development, a build is the process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so.
我假设在 java 中独立的工件将是 jar 文件,因为它是编译源代码的副产品并且它可以是 运行 独立的。但是我不确定是否会是这种情况。
在尝试理解术语时,维基百科永远只是次要来源。
Artifact: An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven for a project include: JARs, source and binary distributions, WARs. Each artifact is identified by a group id, an artifact ID, a version, an extension and a classifier (extension+classifier may be named by a type).
(可能还有比这更多的权威来源。如果有人能找到,请发表评论。)
所以,是的,根据 Maven 术语,JAR 是工件的一个示例。
请注意,就 Maven 使用该概念而言,JAR 不需要由 Maven 生成才能成为工件。您可以获取由(例如)运行 jar
命令手动生成的 JAR 文件,然后通过将其添加到本地存储库来为其赋予工件坐标。