Skip to content

[MASSEMBLY-1002] Assembly fails to include directories when they are symbolic links #1213

@jira-importer

Description

@jira-importer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions