grails-core: Grails 3.0.3: gradle run throws exception "Createprocess error=206; the filename or extension is too long"
When starting a clean grails 3.0.3 app with just a few additional dependencies, the app won’t execute.
Createprocess error=206; the filename or extension is too long
This seems to be a Windows issue as there is a maximum of 30. 000 of characters for a command (see https://support.microsoft.com/en-en/kb/830473).
So, on windows based machines you would never be able to start your app with some additional (transitive) dependencies .
I tried to solve this with a couple of gradle workarounds as mentioned here: https://discuss.gradle.org/t/filename-too-long-in-windows/9222 http://stackoverflow.com/questions/22659463/add-classpath-in-manifest-using-gradle
but they don’t solve this problem. I think grails itself is generating the classpath param (-cp)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 32 (15 by maintainers)
For future reference, to enable the behavior your
build.gradle
must have thepathingJar
option set to true:Here is the fix for the issue with the assets inside the pathing jar (which will break asset reloading):
The assetCompile task will be still executed but the assets not packaged into the pathing jar.
I recommend that you try long path tool, it’s really useful tool and it had worked with me.
@keltik85 That most likely means the grails gradle plugin isn’t included in your build.gradle. Create a fresh 3.1.4 application and look at the differences between the
build.gradle
files.