maven-assembly-plugin
maven-assembly-plugin copied to clipboard
[MASSEMBLY-1002] Assembly fails to include directories when they are symbolic links
Jimisola Laursen opened MASSEMBLY-1002 and commented
Assembly fails to include directories when they are symbolic links.
E.g.
If the directory "${project.basedir}/target/surefire-reports" is a symbolic link to another directory then the following fileset will not work.
<fileSet>
<directory>${project.basedir}/target/surefire-reports</directory>
<outputDirectory>/test_results/surefire</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
However, if the directory "${project.basedir}/target/surefire-reports" is an actual directory (and not a symlinj ) and the files in that directory are symbolic links then it works as expected.
I'm guessing that this might not be a bug in this plugin but rather Maven Resources. There is a related issue in terms of being about symlinks, but that ticket is about preserving symbolic links or not which in not the case here.
Affects: 3.6.0