问题描述
我正在开发一个基于swing的桌面应用程序,并且此应用程序正在使用MediaInfo.dll库.我首先将这个dll安装到了我的本地存储库中,如所述此答案 .然后像这样在我的pom.xml中添加了一个依赖项
I am developing a swing based desktop application and this application is using MediaInfo.dll library. I have first installed this dll to my local repository like described this answer. Then I have added a dependency in my pom.xml like this
<dependency>
<groupId>com.mediainfo</groupId>
<artifactId>mediainfo</artifactId>
<version>0.7.44</version>
<type>dll</type>
</dependency>
我正在使用Maven 3.0.3版本,执行mvn install assembly:assembly时会显示
I am using Maven 3.0.3 version and when I executed mvn install assembly:assembly it says
我是Maven的新手,所以我在寻求帮助之前正在寻求帮助.
I am new to maven, so I am searching for a help before pulling my hear out .
推荐答案
这将取决于您的程序集描述符,但是似乎您有一个<dependencySet>
在其下指定了<unpack>true</unpack>
,这并不排除DLL从集合.尝试将其添加到该dependencySet
元素中:
This will depend on your assembly descriptor, but it seems like you have a <dependencySet>
under which <unpack>true</unpack>
is specified, that does not exclude the DLL from the set. Try adding this into that dependencySet
element:
<excludes>
<exclude>*:dll*</exclude>
</excludes>
如果您打算在不解压缩DLL的情况下并入DLL依赖项,则可能需要一个附加的dependencySet
元素,其中应包括它们并且不指定unpack
标志.参见 http://maven.apache.org/plugins/maven- assembly-plugin/assembly.html#class_dependencySet 了解更多信息.
If you intend to incorporate the DLL dependencies without unpacking them, then you might need an additional dependencySet
element that includes them and doesn't specify the unpack
flag. See http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet for more information.
这篇关于Maven Dll依赖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!