3 ms·
I've never experienced this with maven and I've been using it for close to 10 years on windows. This is also putting all of my code under my home directory.
by vips7L 6y ago
I've never experienced this with maven and I've been using it for close to 10 years on windows. This is also putting all of my code under my home directory.
- cesarb 6y agoIn Java, the file names directly reflect the package and class structure. If you have a class "org.example.long.package.name.SimpleInterfaceBeanFactoryFactory" with an inner class "Inner" that has an inner class "InnerInner" that has an anonymous inner class, the source code for it normally resides at "src/main/java/org/example/long/package/name/SimpleInterfaceBeanFactoryFactory.java", and the bytecode for that anonymous inner class, after being compiled through maven, resides at "target/classes/org/example/long/package/name/SimpleInterfaceBeanFactoryFactory$Inner$InnerInner$1.class". That's already over a hundred characters long, and it's not unusual to have even longer names; a quick look at a project I have around here shows bytecode files with path names approaching 170 characters starting from the maven root. Add to that around 30 characters for a "projects/project-group/project-name" hierarchy, plus 30 more for the path to the user directory, and it's already uncomfortably close to the Windows 260-character limit. It's not hard to imagine that a project with a deeper package hierarchy could hit that limit, and it only takes one file to break the whole build.
- vips7L 6y agoThat limit just isn't a thing anymore.... https://duckduckgo.com/?t=ffab&q=Enable+Win32+Long+paths&ia=web https://duckduckgo.com/?t=ffab&q=Enable+Win32+Long+paths&ia=...