使用程序集插件构建maven时出错

时间:2015-11-26 16:46:01

标签: java maven jenkins maven-assembly-plugin

使用mave with assembly plugin构建tar.gz时,我遇到了以下错误

  

[错误]无法执行目标org.apache.maven.plugins:maven-assembly-plugin:2.5.1:项目上的单一(默认)RebateEngine:目标的执行默认值org.apache.maven.plugins:maven- assembly-plugin:2.5.1:单个失败:用户ID' 50001255'太大了(> 2097151) - > [帮助1]

这是完整的堆栈跟踪

Caused by: java.lang.RuntimeException: user id '50001255' is too big ( > 2097151 )
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.failForBigNumber(TarArchiveOutputStream.java:623)
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.failForBigNumbers(TarArchiveOutputStream.java:613)
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:286)
at org.codehaus.plexus.archiver.tar.TarArchiver.tarFile(TarArchiver.java:329)
at org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:188)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:930)
at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:589)
at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:165)
at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:469)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
... 31 more

2 个答案:

答案 0 :(得分:2)

它正在使用org.apache.maven.plugins:maven-assembly-plugin:2.4

答案 1 :(得分:0)

使用:

<tarLongFileMode>posix</tarLongFileMode>

在maven-assembly插件的<configuration>块中

使用v3.1.0

进行测试