使用maven-antrun-plugin“无法找到目标”错误

时间:2015-12-31 11:20:25

标签: maven ant maven-antrun-plugin

我有这段代码:

<build>
    <plugins>
        <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <executions>
                <execution>
                    <id>ant-execute</id>
                    <configuration> 
                        <target name="compile">
                            <mkdir dir="${xbpm}\lib.dir" />
                        </target>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

当我执行命令mvn antrun:run@ant-execute时,构建失败并出现以下错误:

  

无法在插件org.apache.maven.plugins中找到目标'run @ ant-excecute':maven-antrun-plugin:1.8可用目标帮助,运行 - &gt; [帮助1]

0 个答案:

没有答案