|
I have the same problem, but managed to make a workaround by first unpacking the dependency using the unpack goal in the dependency plugin, and then including it in the assembly as a fileSet with correct fileMode settings. Anders, This bug is a killer. Here is a more detailed description of the work-around I use. In the build/plugins part of the pom.xml I use the dependency plugin to unpack the zip file somewhere: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack</id> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>...</groupId> <artifactId>...</artifactId> <version>...</version> <type>zip</type> <outputDirectory>target/UNPACKEDZIP</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> I then use the fileSet instead of the dependencySet in the assembly: <fileSets> <fileSet> <directory>target/UNPACKEDZIP</directory> <outputDirectory>bin</outputDirectory> <fileMode>0755</fileMode> </fileSet> </fileSets> Anders, Thanks for the detail. Makes sense. Have you noticed any long delays in the maven-dependency-plugin? It seems to finish doing the unpacking and then sit for 4 minutes before handing onto the next plugin. You can even remove the files it claims to be working on and it continues to sit. No, I don't see any delays here |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I've encountered the same problem when trying to use <fileMode>0700</fileMode> . It appears to disregard that tag entirely when used within a dependencyset.