本文介绍了什么是一个Maven神器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是神器?为什么Maven的需要呢?

What is an artifact and why does Maven need it?

推荐答案

这是神器是一个文件,通常是一个JAR,这被部署到Maven仓库。

An artifact is a file, usually a JAR, that gets deployed to a Maven repository.

一个Maven构建产生一个或多个工件,例如编译JAR和源JAR。

A Maven build produces one or more artifacts, such as a compiled JAR and a "sources" JAR.

每个工件都有一个组ID(通常是反向域名,如com.example.foo),工件ID(只是一个名字)和版本字符串。上述三者合计唯一标识神器。

Each artifact has a group ID (usually a reversed domain name, like com.example.foo), an artifact ID (just a name), and a version string. The three together uniquely identify the artifact.

一个项目的依赖关系被指定为文物。

A project's dependencies are specified as artifacts.

这篇关于什么是一个Maven神器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:55