如何在没有安装maven和java的情况下从gradle执行Maven插件

如何在没有安装maven和java的情况下从gradle执行Maven插件

问题描述:

我需要在没有 maven 和 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