如何在没有安装maven和java的情况下从gradle执行Maven插件 [英] How to execute maven plugins from gradle without having maven and java installed

查看:161
本文介绍了如何在没有安装maven和java的情况下从gradle执行Maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在没有 maven 和<$ c $的系统上执行 maven插件 c> java 已安装并且在系统上安装它们不是一个选项。在搜索方式时,我发现通过使用 gradle ,我们可以构建可执行的二进制文件,甚至不需要 gradle 来执行,这完全符合我的情况:)。有没有办法通过使用 gradle 来执行 maven 插件。提前致谢

I need to execute a maven plugin on a system that does not have both maven and java installed and installing both of them on the system is not an option. While searching for the ways, I found out that by using gradle we can build executable binaries that does not even require gradle to get executed, which perfectly fits my situation :) . Is there any way to execute maven plugins by using gradle. Thanks in advance

推荐答案

Maven和Gradle都要求安装java。请参阅 https://docs.gradle.org/current/userguide/installation.html

Both Maven and Gradle require java to be installed. See https://docs.gradle.org/current/userguide/installation.html

这篇关于如何在没有安装maven和java的情况下从gradle执行Maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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