Maven 2 Windows压缩文件夹未完全解压压缩包
我有一个很大的maven项目,有很多模块。其中一个模块不是“真正的”开发项目。它包含最终系统的数据。使用一个特殊的jar将数据部署到系统中。pom现在确保下载jar,并将所有其他数据和批处理文件打包到zip中。它使用maven汇编插件。这个pom文件没有什么魔力。当用Windows压缩文件夹解压zip文件时,魔术开始了。它只会识别相当大的9MB的jar文件,而不会识别几KB的批处理文件和数据文件。我没有立即注意到这一点,因为我真正的老Winzip没有任何关于工件的问题 有没有人有想法或见过类似的问题 pom文件中的插件配置Maven 2 Windows压缩文件夹未完全解压压缩包,maven-2,windows-xp,zip,maven-assembly-plugin,compressed-folder,Maven 2,Windows Xp,Zip,Maven Assembly Plugin,Compressed Folder,我有一个很大的maven项目,有很多模块。其中一个模块不是“真正的”开发项目。它包含最终系统的数据。使用一个特殊的jar将数据部署到系统中。pom现在确保下载jar,并将所有其他数据和批处理文件打包到zip中。它使用maven汇编插件。这个pom文件没有什么魔力。当用Windows压缩文件夹解压zip文件时,魔术开始了。它只会识别相当大的9MB的jar文件,而不会识别几KB的批处理文件和数据文件。我没有立即注意到这一点,因为我真正的老Winzip没有任何关于工件的问题 有没有人有想法或见过类似的
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
我的汇编xml
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<includes>
<include>com.group:product-development-cli</include>
</includes>
<outputFileNameMapping>product-development-cli-${ext.version}.${extension}</outputFileNameMapping>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>.</directory>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
<exclude>target</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
我的文件夹结构:
单元
+-数据1
+-更多文件
+-数据2
+-更多文件
+-pom.xml
+-assembly.xml
+-更多文件是否有可能超过260个字符的windows路径长度限制?即使其他zip程序可以处理,Windows内置的压缩例程也会失败 由于JAR的层次结构,在处理JAR时,这似乎经常出现
你能试着将压缩文件解压缩到一个较短的路径C:\a,看看这是否有帮助吗?受爱德华·汤姆森的启发,我又看了一眼压缩文件。zip文件包含来自两个不同源文件集和依赖项的文件。问题是文件集中的目录标记。压缩文件夹在路径中间不喜欢'.'。 product-0.5.0-SNAPSHOT//file.txt
依赖项不包含。当然。文件夹结构非常平坦。不过,我还是试了一下,运气不好。