<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
          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>create-index-bin-environment</id>
    <formats>
        <format>tar.gz</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>

    <files>
        <file>
            <source>${project.basedir}/src/main/distros/index/bin/bin-dir-update</source>
        </file>
    </files>

    <fileSets>
        <fileSet>
            <directory>${project.basedir}/src/main/distros/index/bin</directory>
            <outputDirectory>bin</outputDirectory>
            <excludes>
                <exclude>bin-dir-update</exclude>
            </excludes>
        </fileSet>
    </fileSets>
</assembly>
<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>create-index-bin-environment</id>
    <formats>
        <format>tar.gz</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>

    <files>
        <file>
            <source>${project.basedir}/src/main/distros/index/bin/bin-dir-update</source>
        </file>
    </files>

    <fileSets>
        <fileSet>
            <directory>${project.basedir}/src/main/distros/index/bin</directory>
            <outputDirectory>bin</outputDirectory>
            <excludes>
                <exclude>bin-dir-update</exclude>
            </excludes>
            <fileMode>0755</fileMode>
        </fileSet>
    </fileSets>
</assembly>
Add execution permissions to the files.
Add execution permissions to the files.
