Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[truezip-maven-plugin] .tar.gz archives are missing files #10

Open
Treeston opened this issue May 3, 2022 · 0 comments
Open

[truezip-maven-plugin] .tar.gz archives are missing files #10

Treeston opened this issue May 3, 2022 · 0 comments

Comments

@Treeston
Copy link

Treeston commented May 3, 2022

In indeterminate conditions, copying files into a .tar.gz archive causes that archive to not contain all included files.

I have produced a minimal working example, which can be run as mvn clean validate. This packages the input folder into two archives in the project root, output.zip and output.tar.gz. Both are produced using identical truezip-maven-plugin executions:

<execution>
    <id>test-tar-gz</id>
    <phase>validate</phase>
    <goals>
        <goal>copy</goal>
    </goals>
    <configuration>
        <fileset>
            <directory>${project.basedir}/input</directory>
            <outputDirectory>${project.basedir}/output.tar.gz/</outputDirectory>
        </fileset>
    </configuration>
</execution>

While the output.zip archive contains all the files as expected, output.tar.gz only includes what appears to be the last handful in alphabetical order:

image

I have verified this behavior in both Windows 10 running natively, as well as Ubuntu 20.04.3 LTS running in WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant