Hi,
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.
I use Eclipse so I have to put my 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

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.
Could it be possible to do this ?
What do you think about this idea ?
Thanks
Vincent.

Reply via email to