7

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>

I am using Maven 3.0.3 version and when I executed mvn install assembly:assembly it says

PlexusIoResourceCollection not found, no archiever found for dll

I am new to maven, so I am searching for a help before pulling my hear out .

Community
  • 1
  • 1
caltuntas
  • 10,747
  • 7
  • 34
  • 39

1 Answers1

4

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>

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.

Brett Porter
  • 5,827
  • 27
  • 25
  • 1
    For those not yet fluent in maven is it possible to given some context to where in the pom this 'excludes' XML belongs? What's the parent element? What's the parent of dependencySet? Is a minimal pom with this setup feasible to post? – Jason Feb 19 '15 at 18:37