When running any Maven procedure in IntelliJ IDEA ( clean or build ), Maven scolds my setting.xml file:

 [ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effective settings [FATAL] Non-parseable settings C:\.m2\settings.xml: only whitespace content allowed before start tag and not - (position: START_DOCUMENT seen ... used when the setting is not specified) are provided. | |-->\r\n\r\n-... @7:2) @ C:.m2\settings.xml, line 7, column 2 

And it is not clear what syntax error he does not like.

In the file setting.xml at @7:2 are lines:

 -<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/SETTINGS/1.0.0"> 
  • 2
    \r\n is a line feed - Komdosh
  • Those. you have unprintable symbols somewhere - Chubatiy

1 answer 1

Only white spaces can be written before the <settings> , and you have a - character. Delete this character and you can leave only white spaces.