Integration with Maven's eclipse software download

Source: Internet
Author: User

Because MAVEN was used to develop the Java EE development at work, the Eclipse version of integrated maven was chosen:

: https://www.eclipse.org/downloads/

Follow the prompts to download 32 or 64-bit version of Eclipse, you may be prompted to donate to help eclipse development, of course, you can also directly enter 0 to download

After installation:

At this point: Software Installation complete

Maven Project creation:

It was created here, but the view doesn't look like our usual engineering look.

Because the default is Project Explorer, and we usually use a package view, so switch the view to OK

windows-"Show view-" others-"package Exploer

But here Pom.xml error:

Description Resource Path Location Type
Web. XML is missing and <failOnMissingWebXml> are set to Truepom.xml/start-marven-projectline 6Maven Java EE Configura tion problem

So to transform Maven project into a EE project: Project Engineering Right-"Java EE tool-" Generate Deployment describe stub

Adding the Showclass class in Src/main/java

1  Package Com.skytech.common; 2 3  Public class Showclass {45void  output ()6{7     System.out.println ("This is the code shown by the MAVEN project"); 8 }9 }

Adding the test class in Src/test/java

1  PackageCom.skytech.common;2 3  Public classTest4 {5   Public Static voidMain (string[] args)6  {7Showclass show=NewShowclass ();8 show.output ();9  }Ten}

The final code structure is:

Final Run Result:

Integration with Maven's eclipse software download

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.