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

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.

主站蜘蛛池模板: 云龙县| 井陉县| 抚顺县| 新和县| 阿尔山市| 衡东县| 广河县| 顺义区| 辽阳县| 梅河口市| 隆回县| 阳江市| 武鸣县| 邳州市| 紫云| 东乌| 时尚| 本溪| 白玉县| 蒲江县| 远安县| 汶上县| 曲沃县| 白朗县| 洪湖市| 黔南| 来宾市| 通辽市| 潼南县| 邵武市| 嘉定区| 东丰县| 临邑县| 泸西县| 清新县| 广东省| 文化| 沿河| 虞城县| 滕州市| 宝兴县|