Start debugging maven-built Javaweb project in eclipse

Source: Internet
Author: User

RT, encountered this problem, my first response is to find a tutorial, today toss a day, book also read, blog also looked, maven video has looked, kind of do not come out of the feeling, with a few hours to see the relevant information and experience, on their own to explore.

Directly began to say how I did it, the process of groping is not verbose.

STEP0, the version I used for Eclipse was Luna,maven, and the project that was shown in 3.0,blog was downloaded from the Internet. Second, check and check, here, as long as this is the case, this version of Eclipse seems to be the default, if not, will be on the right of the add to find out, say Mavendependencies joined to the web-inf/lib on it, why everyone think about it, just like the ordinary project structure, the jar package should be placed under the Web-inf/lib directory.

If not, add the

Step1, to ensure that their projects can be run (including database configuration files are right, LZ in groping because the project is downloaded on the Internet, because they forgot to change the database password and IP caused the database configuration file error, at the start of N times are stuck in hibernate, later changed on the good)

Step2, create a new tomcat (maybe not new, but I didn't go to the test), publish when no items were added to Tomcat, and then the server locations was ready to edit, I used a newly unzipped tomcat, Serverpath writes to the top-level directory of Tomcat, and the Deploy path is written in the WebApps directory under the top-level directory, and then it can be started.

Step3. Then run as and debug as are the same as the normal project.

Start debugging maven-built Javaweb project in eclipse

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.