maven-antrun-plugin随记

简单记录下


<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>

    <groupId>com.billygroupId>
    <artifactId>ant-demoartifactId>
    <version>1.0-SNAPSHOTversion>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-pluginartifactId>
                <version>1.7version>
                <executions>
                    <execution>
                        
                        <id>copy-fileid>
                        
                        <phase>cleanphase>
                        <goals>
                            <goal>rungoal>
                        goals>
                        <configuration>
                            <tasks>
                                <echo message="打印了..."/>
                            tasks>
                        configuration>
                    execution>
                executions>
            plugin>
        plugins>
    build>
project>

执行
在这里插入图片描述
触发

你可能感兴趣的:(java-随记)