Skip to content

Cannot extract linux-x86-64 with maven-dependency-plugin in 5.4.0 (only)  #1133

@dyorgio

Description

@dyorgio

Hi, it is a very stranger bug :P

I normaly can extract from jna jar any resource with maven-dependency-plugin and unpack goal:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-dependency-plugin</artifactId>
    <version>3.1.1</version>
    <executions>
        <execution>
            <id>linux-so-unpack</id>
            <goals>
                <goal>unpack</goal>
            </goals>
            <configuration>
                 <artifactItems>
                     <artifactItem>
                         <groupId>net.java.dev.jna</groupId>
                         <artifactId>jna</artifactId>
                         <version>${version.jna}</version>
                         <overWrite>true</overWrite>
                         <outputDirectory>${project.build.directory}</outputDirectory>
                         <includes>com/sun/jna/linux-x86-64/libjnidispatch.so</includes>
                     </artifactItem>
                </artifactItems>
            </configuration>
        </execution>
    </executions>
</plugin>

But, only in version 5.4.0, I can't, no erros, no file extracted.
I already deleted my maven local copy, download latest binary directly from github project home, nothing works.

If I change to get linux-x86 (or any other package) it works in 5.4.0.
If I change jna version (4.5.0, 5.3.0) it works (linux-x86-64 resource is extracted).

I can extract 5.4.0 without problems too (using native macos utility) and folder/file exists.

Anybody can test if there is a bug on lastest distro or it only occours in my machine?

Running macos Mojave 10.14.6 here, with Zulu OpenJDK 1.8.0_202.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions