maven references the local lib file jar no umf in java.library.p***

Reference method:

My package storage path is in libs under the project root path;

pom.xml added

<dependencies>
    <!--本地包-->
    <dependency>
        <groupId>jRF</groupId> <!-- 这个可以自定义 -->
        <artifactId>FM1208</artifactId>
        <version>1.0</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/libs/jRF.jar</systemPath>
    </dependency>
</dependencies>

When packaging, it always prompts an error; no file information was found.

打包 Caused by: java.lang.UnsatisfiedLinkError: no umf in java.library.p*********************

The packaging command executed is: mvn clean install

The local operation is normal but the packaging fails;

Finally, Daniel pointed out that the test information needs to be ignored when executing the command;

Modify the command to: mvn clean install -DskipTests

Packaging successful; problem solved perfectly;

Also refer to a method of importing jars into a local warehouse; here is the link:

https://www.cnblogs.com/sueyyyy/p/10571473.html

 

Guess you like

Origin blog.csdn.net/xingfaup/article/details/113571751