Technology Sharing

Maven project compilation prompts unparseable pom solution

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

【Problem Description】

I manually downloaded a Java Web project and imported it into the eclipse development tool. Then I right-clicked and did "maven clean". Then I found that when I operated Maven, the word "unparseable POM" appeared. As a result, I couldn't update the local Maven repository at all.

【Answer】

Find the Maven option under "Window Preferences" of Eclipse; check the global settings (settings.xml under the Maven installation directory) and user settings (the existing Maven warehouse directory/settings.xml under the warehouse directory pointed to by the settings.xml under the Maven installation directory) in turn. Only when these two properties are configured at the same time and click Apply, can the Maven function run successfully.

【in conclusion】

The weather is hot and my mind is foggy. :)

(over)