Skip to content

Eclipse known troubleshooting

Maven raises error 206: The filename or extension is too long

Section titled “Maven raises error 206: The filename or extension is too long”

When you build an application on Windows you can get the error create process error 206 the filename or extension is too long. This is caused by a Windows OS limitation. To solve it:

  • Move the .m2 repository to c:\
  • Go to Eclipse > Windows/Preferences/Maven/User Settings -> Create your own settings.xml with the following content:
<settings>
<localRepository>c:/.m2/repository</localRepository>
</settings>