Step 2 : Maven The main use is ： Same project structure
Step 3 : Maven The main use is two ： Unified maintenance jar Bag
Step 1 :
What is? Mavenedit
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 structureedit
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
Step 3 :
Maven The main use is two ： Unified maintenance jar Bagedit
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
The official account of programming , Follow and get the latest tutorials and promotions in real time , thank you .
Q & A area
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