The Maven Deploy Plugin – Maven部署插件

最后修改: 2018年 4月 19日

中文/混合/英文(键盘快捷键:t)

1. Overview

1.概述

This tutorial introduces the deploy plugin, one of the core plugins of the Maven build tool.

本教程介绍了deploy插件,这是Maven构建工具的核心插件之一。

For a quick overview of the other core plugins, refer to this article.

关于其他核心插件的快速概述,请参考这篇文章

2. Plugin Goals

2.插件目标

We use the deploy plugin during the deploy phase, pushing artifacts to a remote repository to share with other developers.

我们在deploy阶段使用deploy插件,将工件推送到远程仓库,与其他开发者共享

In addition to the artifact itself, this plugin ensures that all associated information, such as POMs, metadata or hash values, is correct.

除了工件本身,这个插件还确保所有相关的信息,如POMs、元数据或哈希值,都是正确的。

The deploy plugin is specified in the super POM, hence it’s not necessary to add this plugin to the POM.

deploy插件是在超级POM中指定的,因此没有必要在POM中添加这个插件。

The most noticeable goal of this plugin is deploy, bound to the deploy phase by default. This tutorial covers the deploy plugin in detail, hence we won’t go any further.

这个插件最引人注目的目标是deploy,默认与deploy阶段绑定。本教程详细介绍了deploy插件,因此我们不做进一步介绍。

The deploy plugin has another goal named deploy-file, deploying an artifact in a remote repository. This goal isn’t in common use though.

deploy插件还有一个名为deploy-file的目标,在远程仓库中部署工件。不过这个目标并不常用。

3. Conclusion

3.结论

This article gave a brief description of the deploy plugin.

这篇文章对deploy插件进行了简要描述。

We can find more information about this plugin on the Maven website.

我们可以在Maven网站上找到关于这个插件的更多信息。

Next »

The Maven Clean Plugin

« Previous

Quick Guide to the Maven Surefire Plugin