Maven’s first applet
Here is the first applet about Maven
About Maven installation:
First look at the directory structure:
This is the original project directory structure. Since Maven has its own directory structure, the following is the directory structure after adding Maven elements:
Namely:
NOTE:
What you see is an error prompt marked by a red X. This is a prompt in eclipse, which can be ignored.
Next is the key:
pom. XML file is the acronym of project object manager. Project object management.
In POM XML file, for the com b510. maven. hello. Hello. Java class, his groupid = com b510. maven. hello,artifactId = hello-first,version = SNAPSHOT-0.0. one
Our test class depends on JUnit, which belongs to the test domain.
The following are the hello and hellotest classes
Both classes are very simple.
Now let's start the windows console. That is, run -- > CMD, or Ctrl + R -- > CMD
Enter the root directory of the project: D: \ development \ workspace \ Maven_ project
Since there are no resources needed for compilation in our local warehouse, Maven will go to the remote warehouse to obtain resources locally
The following is the console operation effect: only some logs are intercepted here