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

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.

主站蜘蛛池模板: 萨迦县| 苏尼特左旗| 温泉县| 万年县| 桃源县| 西吉县| 花垣县| 贵定县| 彭州市| 洛宁县| 许昌市| 宁安市| 潞城市| 加查县| 隆德县| 都匀市| 三门峡市| 中山市| 南城县| 华池县| 那曲县| 简阳市| 新宁县| 涿州市| 城市| 黔江区| 延寿县| 东乡县| 巫溪县| 托克托县| 稷山县| 蓬溪县| 东乌珠穆沁旗| 江城| 孟津县| 正定县| 平度市| 丰顺县| 浠水县| 姚安县| 红桥区|