assembly插件:使用package.xml打zip包

assembly插件:使用package.xml打zip包

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.5.5</version>
    <configuration>
        <encoding>utf-8</encoding>
        <appendAssemblyId>false</appendAssemblyId>
        <descriptors>
            <!-- 配置描述符文件 -->
            <descriptor>src/main/build/package.xml</descriptor>
        </descriptors>
    </configuration>
    <executions>
        <execution>
            <id>make-assembly</id>
            <!-- 绑定到package生命周期 -->
            <phase>package</phase>
            <goals>
                <!-- 只运行一次 -->
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
</plugin>

 

posted @ 2020-07-16 14:05  mzjnumber1  阅读(398)  评论(0编辑  收藏  举报