Gradle build.gradle到Maven pom.xml [英] Gradle build.gradle to Maven pom.xml

查看:376
本文介绍了Gradle build.gradle到Maven pom.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Gradle项目,我需要将其所有依赖关系转移并用于另一个Maven项目。换句话说,我该如何从build.gradle生成(或者可以生成)pom.xml?

解决方案

内置的解决方案可能会使用Maven插件中的 archiveTask 任务,该任务将在 poms 文件夹中生成一个pom在你的构建目录中。 http://www.gradle.org/docs/current/userguide/maven_plugin.html#秒:maven_pom_generation


I have a Gradle project and I need all its dependencies to be transferred and used with another Maven project. In other words how can I generate (or can I generate) the pom.xml from the build.gradle?

解决方案

The most built in solution would likely be to use the archiveTask task in the Maven Plugin which will generate a pom in the poms folder in your build dir. http://www.gradle.org/docs/current/userguide/maven_plugin.html#sec:maven_pom_generation

这篇关于Gradle build.gradle到Maven pom.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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