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