<assembly>
    <id>bin</id>
    <formats>
        <!--支持 zip，tar，tar.gz，tar.bz2，jar，dir，war 等 -->
        <format>dir</format>
    </formats>
    <includeBaseDirectory>true</includeBaseDirectory>
    <fileSets>

        <!-- 启动文件 -->
        <fileSet>
            <directory>target</directory>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>gen.jar</include>
            </includes>
            <fileMode>0644</fileMode>
        </fileSet>

        <!-- 执行脚本 -->
        <fileSet>
            <directory>src/main/assembly/bin</directory>
            <outputDirectory>/</outputDirectory>
            <fileMode>0755</fileMode>
        </fileSet>

        <!-- 启动文件 -->
        <fileSet>
            <directory>target/lib</directory>
            <outputDirectory>lib</outputDirectory>
            <fileMode>0644</fileMode>
        </fileSet>

        <!-- 扩展文件 -->
        <fileSet>
            <directory>src/main/assembly</directory>
            <includes>
                <include>ext.md</include>
            </includes>
            <outputDirectory>ext</outputDirectory>
            <fileMode>0644</fileMode>
        </fileSet>



        <!-- 配置文件 -->
        <fileSet>
            <directory>src/main/resources</directory>
            <outputDirectory>conf</outputDirectory>
            <includes>
                <include>app.yml</include>
            </includes>
            <fileMode>0644</fileMode>
        </fileSet>

    </fileSets>

</assembly>
