about Maven
maven is an open source project under Apache is pure Java development and is only used to manage Java projects.
The advantage of MAVEN is that it saves space (all the required jar packages are saved to the local repository)
Files in Maven, we only need to focus on the settings.xml file.
To configure the location of the local warehouse:
1. Maven Common Commands
Clean clears the files that have been compiled
Compile files that have the home directory compiled
Test compiles and runs the code for the test directory
Package Packaging
Install is to publish the project to the local warehouse
Tomcat:run start with one click (when the TOMCAT7 plugin is configured, use Tomcat7:run)
2. New Project
Punch here.
Environmental variables Considerations:
Directory structure
3. Import Package
4. Introduction of Plugins
<build> <finalName>HelloWorld</finalName> <!--Configure a number of plugins-- <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId> maven-compiler-plugin</artifactid> <version>3.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>utf-8</ encoding> </configuration> </plugin> <plugin> <!--use TOMCAT7: Run- <groupId>org.apache.tomcat.maven</groupId> <artifactId> tomcat7-maven-plugin</artifactid> <version>2.2</version> </plugin> < /plugins></build>
mavent--Learn Java not maven, how can