标签:sse develop resources oal 插件 test win32 res cut
debug时:
在vm中配置:-Djna.library.path=E:/develops/test/log/src/main/resources/win32-x86-64
打包使用maven-assembly-plugin插件
使用直接mvn clean package
即可
注意:需要将dll文件放到Resources下。
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.mantishell.Demo</mainClass> #这里指定入口
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
标签:sse develop resources oal 插件 test win32 res cut
原文地址:https://www.cnblogs.com/mantishell/p/14805497.html