有从Maven到Bazel的迁移路径吗? [英] Is there a migration path from Maven to Bazel?

查看:403
本文介绍了有从Maven到Bazel的迁移路径吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,Bazel( http://bazel.io/)已开源,是否有逐步逐步迁移的过程? (大型存储库)从Maven到Bazel?

Now that Bazel (http://bazel.io/) has been opensourced, is there an incremental process by which I can gradually migrate (a large repository) from Maven to Bazel?

推荐答案

自从Ulf做出回应以来的两年中,已经做出了一些努力来协助从Maven到Bazel的迁移.特别是,Bazel团队正在创建一个工具来协助此工作: https://github.com/bazelbuild /migration-tooling

In the two years since Ulf responded, there's been a few efforts to assist with maven to bazel migration. In particular, the Bazel team is creating a tool to assist with this: https://github.com/bazelbuild/migration-tooling

该工具从一组pom文件或maven坐标生成扩展的WORKSPACE文件.在理想情况下,您可以将路径传递到您的maven项目,然后它将生成一个bzl文件,您可以将该文件加载到WORKSPACE文件中.

The tool generates expansive WORKSPACE files from a set of pom files or maven coordinates. In the ideal case, you can pass the path to your maven project, and then it will generate a bzl file you can load into the WORKSPACE file.

有关如何管理外部依赖项的更多评论可以在这里找到: https://bazel.build/versions/master/docs/external.html

More commentary on how to manage external dependencies can be found here: https://bazel.build/versions/master/docs/external.html

这篇关于有从Maven到Bazel的迁移路径吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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