Struts2.3.4.1 converts a maven project to an eclipse project.

Source: Internet
Author: User

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.

 

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.