Maven程序集插件未设置文件属性 [英] maven assembly plugin do not set file attributes

查看:85
本文介绍了Maven程序集插件未设置文件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这与的副本相同在解压后的dependencySet上应用fileMode ,但仍未得到解决. 我的程序集是

I know this is a duplicate of Maven assembly plugin not applying fileMode on unpacked dependencySet but it's still unanswered. My assembly is

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>distribution</id>
<formats>
    <format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
    <dependencySet>
        <outputDirectory></outputDirectory>
        <useProjectArtifact>false</useProjectArtifact>
        <fileMode>775</fileMode>
        <includes>
            <include>eu.els.inneo.tools:compare-files-shells</include>
        </includes>
        <unpack>true</unpack>
        <unpackOptions>
            <excludes>
                <exclude>META-INF/**</exclude>
                <exclude>META-INF</exclude>
            </excludes>
        </unpackOptions>
        <scope>runtime</scope>
    </dependencySet>
    <dependencySet>
        <outputDirectory>jars</outputDirectory>
        <useProjectArtifact>false</useProjectArtifact>
        <includes>
            <include>eu.els.inneo.tools:compare-files-xml</include>
            <include>eu.els.inneo.tools:compare-files-diff</include>
        </includes>
        <unpack>false</unpack>
        <scope>runtime</scope>
    </dependencySet>
</dependencySets>

eu.els.inneo.tools:compare-files-shells 是一个 jar ,仅包含外壳文件(bash和配置文件),我想要它们所有人都可以运行.

eu.els.inneo.tools:compare-files-shells is a jar packaging the contains only shell files (bash and config files), and I want them to be runnable by everyone.

构建此tar.gz,外壳文件为644.

Building this tar.gz, shell files are 644.

任何帮助将不胜感激.

克里斯托夫

推荐答案

这是一个错误: https://issues.apache.org/jira/browse/MASSEMBLY-829

解决了3.0.0-快照

Solved in 3.0.0-SNAPSHOT

这篇关于Maven程序集插件未设置文件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆