inotgo.com

Step 1 : What is? Maven   
Step 2 : Maven The main use is : Same project structure   
Step 3 : Maven The main use is two : Unified maintenance jar Bag   

Maven Is dedicated to building and managing Java Tools for related projects .

Maven It's Yiddish , Yidi ( The international language used by Jews ), Means an expert .

So use Maven Administration Java project , You are an expert -_-!
Step 2 :

Maven The main use is : Same project structure

edit top fracture
use Maven Managed Java Projects have the same project structure
1. There is one pom.xml It is used to maintain the current project jar Bag
2. be-all java The code is all in src/main/java below
3. All the test code is placed in src/test/java below
Maven  The main use is : Same project structure
Step 3 :

Maven The main use is two : Unified maintenance jar Bag

edit top fracture
For example, there are 3 individual Java project , None of these projects are maven style . So this 3 A project , Will maintain a set of jar Bag . And some of them jar The package is the same .

and maven Style project , First, put all jar The bags are all in " Warehouse “ in , Then which project needs this jar Bag , Just give jar Just the name and version number of the package . such jar The package realizes sharing

As shown in the figure , stay pom.xml in , It means that mysql of jar Bag , The version number is 5.1.30.

So where is the warehouse ? How to build it ? In the following tutorial, we will talk about : Warehouse
Maven  The main use is two : Unified maintenance jar Bag


The official account of programming , Follow and get the latest tutorials and promotions in real time , thank you .


Q & A area    
2021-01-06 Took some notes
If you work hard, you will enter a big factory

link :https://blog.csdn.net/weixin_44614828/article/details/112250200 Took some notes , Possible problems in the following sections , Wrote my solution , Hope to help







The answer has been submitted successfully , Auditing . Please My answer Check the answer record at , thank you
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see




2020-11-17 maven Wrong report
La la 6




Wrong project report
 Landlord , What's the situation .Description	Resource	Path	Location	Type org.apache.maven.archiver.MavenArchiver.getManifest (org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)	 pom.xml	/time_manager	line 1	Maven Configuration Problem
 
               





The answer has been submitted successfully , Auditing . Please My answer Check the answer record at , thank you
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see





2020-05-07 maven The version selection during installation needs to be based on your own idea and jdk Make a choice
2020-04-02 wtc
2020-03-26 I hope the webmaster can publish a version Gradle course


Too many questions , Page rendering is too slow , To speed up rendering , Only a few questions are displayed on this page at most . also 5 Previous questions , please Click to view

Please... Before asking questions land
The question has been submitted successfully , Auditing . Please My question Check the question record at , thank you
about Tools and Middleware -Maven- Introduce Your questions

Try to provide Screenshot code and Abnormal information , Help to analyze and solve problems . You can also enter this station QQ Group communication : 496725845
Ask questions and try to provide complete code , Environment description , The more conducive to the recurrence of the problem , The faster your question can be answered .
Have questions about the code in the tutorial , Please provide which step , Which line is in doubt , This makes it easy to quickly locate the problem , Improve the speed at which questions are answered
In the thousands of questions that already exist , A considerable proportion , Because of the use of and webmaster Different versions of the development environment Resulting in , For example jdk, eclpise, idea, mysql,tomcat Wait, the version of the software is inconsistent .
Please use the same version as the webmaster , You can save yourself a lot of learning time . The webmaster sorted out the software versions used in teaching , It's all here , Convenient for everyone to download : /k/helloworld/helloworld-version/1718.html

Upload screenshot