Quick Guide to the Maven Install Plugin – Maven安装插件的快速指南

最后修改: 2018年 4月 19日

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

1. Overview

1.概述

This article describes the install plugin, one of the core plugins of the Maven build tool.

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

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

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

2. Plugin Goals

2.插件目标

We use the install plugin to add artifacts to the local repository. This plugin is included in the super POM, therefore a POM doesn’t need to explicitly include it.

我们使用install插件将工件添加到本地仓库。该插件包含在超级POM中,因此POM不需要明确包含它。

The most noteworthy goal of this plugin is install, which is bound to the install phase by default.

这个插件最值得注意的目标是install,它默认被绑定到install阶段。

Other goals are install-file used to automatically install external artifacts into the local repository, and help showing information on the plugin itself.

其他目标是install-file用于自动安装外部工件到本地仓库,以及help显示插件本身的信息。

In most cases, the install plugin doesn’t need any custom configuration. That’s why we won’t dive deeper into this plugin.

在大多数情况下,install插件不需要任何自定义配置。这就是为什么我们不会深入研究这个插件。

3. Conclusion

3.结论

This post gave a brief introduction to the install plugin.

这篇文章对install插件做了简单介绍。

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

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

Next »

The Maven Failsafe Plugin

« Previous

Maven Compiler Plugin