如何执行命令行maven插件? [英] How to execute maven plugin from command line?

查看:1668
本文介绍了如何执行命令行maven插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能执行的命令行Maven插件?我需要运行依赖插件:

Is it possible to execute a Maven plugin from the command line? I need to run dependency plugin:

<executions>
    <execution>
        <id>copy-dependencies</id>
        <phase>package</phase>
        <goals>
            <goal>copy-dependencies</goal>
        </goals>
        <configuration>
            <outputDirectory>${RPTBIN}/.tools/lib</outputDirectory>
            <overWriteReleases>false</overWriteReleases>
            <overWriteSnapshots>false</overWriteSnapshots>
            <overWriteIfNewer>true</overWriteIfNewer>
            <excludeTransitive>true</excludeTransitive>
        </configuration>
    </execution>
</executions>

有什么办法来执行这个插件就像这个插件的Maven执行过程中建立?

Is there any way to execute this plugin just like this plugin executes during Maven build?

推荐答案

是的,这是可能的。 Maven是一个Java工具,所以你必须安装才能继续爪哇。请通过安装过程 rel=\"nofollow\">。

Yes that is possible. Maven is a Java tool, so you must have Java installed in order to proceed. Please go through the installation process here.

mvn dependency:copy-dependencies

一个样本依赖插件命令。通过你怎么一直至今运行Maven的命令的方式吗?

A sample dependency plugin command. By the way how you have been running the Maven command till now?

这篇关于如何执行命令行maven插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆