[ http://jira.codehaus.org/browse/MNG-2671?page=comments#action_80931 ] Peter Anning commented on MNG-2671: -----------------------------------
I have exactly the same issue and have battled with it for ages. It should easily be possible to reduce these relative paths so they do not exceed Windoze ridiculous 255 path limit. I have a structure with multiple multi module builds take place. When the individual artifact is build it is fine when I build from another module I get class not found! > Parent/modules relative file path compression > --------------------------------------------- > > Key: MNG-2671 > URL: http://jira.codehaus.org/browse/MNG-2671 > Project: Maven 2 > Issue Type: Improvement > Components: Inheritence and Interpolation > Affects Versions: 2.0.4 > Environment: Windows XP > Reporter: Vincent Beretti > Priority: Minor > > Sometimes a problem appears in M2 with parent and module structure due to > the OS limitation in filepath length. > For example Windows file path can not exceed 255 characters. > But in complex maven 2 structure of parent/modules we can encounter a > problem with that. > In Eclipse, one has to put children projects in a flat structure. > Example : > in my filesystem my projects are : > C:/ > |------ parentProject/ > |------ childprojectA/ > |------ childProjectB/ > But in maven the structure is as following : > parentProject > |------ childProjectA > |------ childProjectB > So in childProjectX poms, I have to references parent project like this : > <relativePath>../parentProject</relativePath> and the same for modules in > parent as <modules><module>../parentProject</module></modules> > On a very complex structure, I have a path longer than 255 but in fact i > could be compressed to remove .. > for example when maven deletes target dir, it does like this : > delete C:/parentProject/../childProjectA/target > instead it could do > delete C:/childProjectA. > This would reduce the path length in very complex structures. > See the post at : > http://www.nabble.com/Parent-modules-File-path-compression-tf2628075s177.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira