Create a Web project using Maven

Source: Internet
Author: User

Currently doing the project using MAVEN to manage the jar package, it feels good to use, do not have to add and download the jar package, directly in the MAVEN configuration file configuration can be, MAVEN can help us to automatically download, very convenient. This article describes how to create a MAVEN project.

Recommended 2 maven Find a jar package configuration site, only need to search for keywords to find the required jar package, very convenient

http://serch.maven.org; http://mvnrepository.com

The following is a guide to creating a related graphic:

1. First create a MAVEN project:

2, follow the above steps can create a MAVEN project, you can see the bottom of the directory structure, such a directory structure is not correct, need to make some changes.

First in order to avoid garbled, we should change the project code to Utf-8, after the project code is used Utf-8, add a character encoding filter, garbled is no longer "chaotic"

Again, follow the action in the solution (set JRE as Default), and the complete, correct directory structure will appear.

Finally, there is a index.jsp error, we need to introduce Java EE jar package, introduced in the Pom.xml:

<dependency>

<groupId>javax</groupId>

<artifactId>javaee-api</artifactId>

<version>7.0</version>

</dependency>

At this point, the complete directory structure and the correct project are done, and then some configuration

Create a Web project using Maven

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.