Eclipse creates the first Maven project

Source: Internet
Author: User

The Spring framework network sees the high efficiency of creating dependent packages with Maven. Just try it.

The version that is used is eclipse, system windows. It's just a rookie, after all.

First check a lot of information, it is recommended to install MAVEN. See Eclipse Integration. Then do not reinstall the MAVEN environment. Direct use.

Maven project, File-------------then you see the Create a simple project tick box.

This is the branch mission. You can go in and choose the Maven template, which has many project-managed templates such as SPRING STRUTS scale.

Check into the main line task first. Each engagement is meant to be from other blogs

groupId: The project name, since some items are not made of a jar package, but consist of a lot of jar packages. So this groupid is the name of the whole project.

Artifactid: The name of the package.

Version: revision number.

Packaging: The type of package, usually a jar, or a war. If not, the default is the jar.

In this step, the basic configuration has been completed.

Add a project that requires version management to the Pom.xml.

Then you go into the branch task.

I'm going to use MAVEN to manage a WebApp project. The comparison can be found missing WebApp folder!.

Project facets->convert to faceted form ... Tick the Dynamic Web module to see the presence of futher configuration available click the Context root to fill in GroupID

Contentdirectory fill in the file name.

Then the properties->deployment assembly->add, JAVA BUILD PATH ENTRIES, outputs the LIB to the Web-inf/lib directory. Output the previously created folder of project facets to the root directory.

Then there's the exciting MAVEN RUN.

Right-click on the project run Maven INSTALL to finish to the target folder to view it!

Eclipse creates the first Maven project

Related Article

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.