MAVEN Builds WebApp development environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.