Maven creates webapp (2) and maven creates webapp
This section describes how to use maven to create a simple webapp project under myeclipse.
The web Development maven repository automatically adds components, so you need to keep the network smooth.
Open myeclipse --> File --> project --> select Maven Project --> next -->
We chose to create a simple webapp project. If maven is used for the first time, the local repository needs to download some basic common builds from the remote repository, this process is time-consuming (I want to say it's time-consuming for TMD ).
Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Problem: An internal error occurred during: "Retrieving archetypes:". GC overhead limit exceeded
If the gc overhead limit exceeded eclipse error occurs: The cause is that the memory configured by eclipse is too small by default, You need to modify the eclipse. ini file under the eclipse Installation File.
Use vim to open the/etc/eclipse. ini file
Modify the following content to-Xms 512 m (minimum initial memory)-Xmx 1024 m (maximum memory occupied)-XX: MaxpermSize = 1024 m (maximum memory occupied during compilation)
Restart myeclipse.
Certificate --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> Select a webapp --> next -->
Group id: select a name (such as cn)
Artifact id: Name (for example, web)
--> After finishing, you can see the web project (such as) in the workspace --> the creation is complete.