Struts2.3.4.1 converts a maven project to an eclipse project.
1. install and configure maven locally.
1.1, download from maven official website, official website address: http://maven.apache.org/download.cgi
1.2 configure maven Environment Variables
For example, my maven storage path: D: \ java \ tools \ apache-maven-3.3.9-bin \ apache-maven-3.3.9, next, create an environment variable:
The variable value is the maven storage path.
Click OK to add a reference to the path variable.
After the configuration is complete, open the cmd window and execute mvn-version
Now the maven environment has been set up.
2. Run the maven command to convert struts2.3.4.1 to an eclipse project.
2.1 run cmd To Go To The src directory of the struts project. For example
Execute the command mvn eclipse: eclipse
Some errors may occur when you execute this command. The pom. xml file of the project has an error. The solution is to comment out some code in the pom. xml file under the src directory:
Note the following code in pom. xml in the app directory under the src directory:
Run mvn eclipse again: if there is no error or exception in the eclipse command, wait until the conversion is complete.