Introduction to idea Maven toolbar

1. Side toolbar

 The maven sidebar is as shown in the picture above

After the new version of IDEA is installed, it will be displayed directly on the right sidebar of the window.
It can also be opened through IDEA's menu bar, View–>Tool Windows–>Maven.

2. Introduction to Maven Project View

Open the maven view as above

 Above the corresponding project name is the shortcut toolbar, and the commonly used Maven refresh knob is the first on the left; below the corresponding project name, it is mainly divided into three parts, Lifecycle, Plugins and Dependencies.

Lifecycle:展示Maven项目构建生命周期中常用的命令,方便快速执行。
           Maven默认生命周期重要的构建阶段( phase)

Plugins:Maven的插件,主要用于执行相对应构建阶段的任务。

Dependencies:Maven管理jar包的依赖关系视图。

 2.1 Lifecycle

The opening interface is as shown in the picture above, and its various functions are introduced as follows:

    clean命令

清除由项目编译创建的target

    validate命令

验证项目是否正确并且所有必要的信息均可用

    compile命令

编译项目的源代码

    test命令

使用合适的单元测试框架来测试编译的源代码。 这些测试不应要求将代码打包或部署

    verify命令

对集成测试的结果进行任何检查,以确保符合质量标准

    package命令

完成了项目编译、单元测试、打包功能,但没有把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库

    install命令

完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库,但没有布署到远程maven私服仓库

    deploy命令

完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库

Guess you like

Origin blog.csdn.net/weixin_52255395/article/details/126847629