MAVEN is very important in development as a JAR package management tool. With maven-connected warehouses, you can automatically download jar packages from the warehouse and add them to the project by adding configuration, without needing to search each other, find the official website to download locally, and add them from the build path.
First or installation, to the official website to download a compressed package and unzip, the following files can then create a new folder warehouse, subsequent I will be set as the local warehouse path, the downloaded jar package will be under this path.
Open Conf/setting.xml, which is the remote warehouse and the local warehouse configuration, the domestic network can use the image of Ali, the reference configuration as follows, Localrepositrory for the local warehouse path
<localrepository>D:/java/apache-maven-3.5.2/warehouse</localrepository> <Mirror> <ID>Nexus-aliyun</ID> <mirrorof>Central</mirrorof> <name>Nexus Aliyun</name> <URL>Http://maven.aliyun.com/nexus/content/groups/public</URL> </Mirror>
Then open Eclipse and apply the settings file to the configuration in the Window->preferences->maven->user settings
Then set up Project File->new->maven project, select Maven-archetype-webapp
Then increase the server, select Tomcat as the boot container, then add Webdemo, and start the test
Then open the browser, enter http://localhost:8080/, you can see the Hello World page, the development environment initialization is complete. Now, you can push the code onto GitHub using the method mentioned in the previous article.
Next, to introduce frameworks such as SPRINGMVC, simply add the relevant configuration information to the POM.
Today reviewed the Web application development environment to build, next plan to write a suitable for the front and back end of the development of the spring RESTful framework configuration, after all, service-oriented is the prevailing design ideas, back end only JSON information is also more conducive to development and interface testing.
MAVEN Builds WebApp development environment