官术网_书友最值得收藏!

Installing Maven

Maven is a popular build tool for Java development. Some important open source projects were built using this tool. There are features that facilitate the build process, standardize the project structure, and provide some guidelines for best practices development.

We will install Maven, but the installation step should be executed after the OpenJDK installation.

Open a terminal and execute the following:

sudo apt-get install maven -y

Check the installation using this command:

mvn -version

You should see the following output, although the version may be different for you:

Well done. Now we have Maven installed. Maven has a vibrant community that produces many plugins to help developers with important tasks. There are plugins to execute a unit test and plugins to prepare the project for the release event that can be integrated with SCM software.

We will use the spring boot maven plugin and docker maven plugin. The first converts our application to a JAR file and the second enables us to integrate with Docker Engine to create images, run containers, and much more. In the next few chapters, we will learn how to configure and interact with these plugins.

主站蜘蛛池模板: 曲阳县| 冷水江市| 齐齐哈尔市| 梅州市| 唐河县| 明水县| 合山市| 孝感市| 大连市| 海晏县| 平邑县| 会昌县| 山东| 上栗县| 新巴尔虎右旗| 秦皇岛市| 防城港市| 城市| 拉萨市| 新郑市| 河曲县| 濮阳市| 德江县| 公主岭市| 上蔡县| 江达县| 石嘴山市| 和顺县| 东明县| 仙桃市| 古丈县| 疏附县| 香港| 乐安县| 德钦县| 新田县| 富阳市| 古田县| 万荣县| 安康市| 潼南县|