Maven performed using guide jar package

MAVEN

Preface:

  Before learning JDBC, we first learn simple Maven, now we only need to use maven package to guide, not too in-depth understanding of learning, the latter will make the appropriate learning.

Sei题:

  Maven Project Object Model (POM), to manage the project information can be constructed by a short description, reporting and documentation project management tools.

  First we go to the official download maven package and unpack and configure the environment variables.

 

 

 

  Next, we tested whether success.

 

 

 

  After the test is successful, we have to make the appropriate changes to the internal configuration of the maven, maven open conf file in the folder, open setting.xml.

  Here we modify a local repository path and image download (if you need more of the mirror can find online).

 

 

 

  After modifying the configuration, we open an IDE maven configuration (here I use IDEA to demonstrate).

1. Create a maven project (follow the prompts to yellow highlighter)

2. Make create

 

 

This is generally in accordance with the foregoing setting is set automatically:

 

3. Click Automatic download (first download is very slow, because you want to download a lot of things behind would not be so slow)

 

4. created (this is normal) folder:

 

Such a standard maven project is created it! The next package is turned in the pom.xml <dependency> package to the guide:

 

 

If you want to import a package, but do not know how to write, you can Baidu search: maven package name

Then I'll show you the actual operation:

Find: mysql maven

 

 

 

 

 

Such success would lead pack it! Is the use of the above respective operations maven introducing the jar package.

 

summary:

  These actions may seem simple, but for beginners or somewhat difficult, I hope beginners in learning when to be patient.

                                     Come on!

                                Time: 2020-03-31 12:37:26

Guess you like

Origin www.cnblogs.com/Charles-H/p/Learning_UseMaven.html