Solve the problem that idel running run becomes gray and there is no maven

Maven has been configured locally and in ideal, and the imported maven project cannot run. The main reason is that pom.xml is not recognized.

Phenomenon:

solution:

1. Open Add Maven Projects

2. Find pom.xml and click ok

If it still doesn't work, the JDK version is not configured properly, you can check the problem from the Event log

1. Click configure to configure

2. If the jdk in the profiles is inconsistent with the local configuration or the jdk running in the project, cancel the check mark, clean it again, and press the refresh button again to update, it will be successful 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_43241216/article/details/128944699