Maven对其他语言的支持如何,以及编写插件支持其他语言?

发布于 2024-10-07 00:54:41 字数 654 浏览 0 评论 0原文

我最近询问了有关 maven 的其他工具语言,但没有任何回应(除了一些赞成票:)。鉴于此,我决定也许使用 Maven 很好,但我必须编写自己的插件来完成简单的事情

这会产生许多问题,我想听听人们正在使用的解决方案在他们的日常流程中:

  • 运行其他构建/发布系统并且主要使用 Maven 进行打包/依赖管理? (msbuild、vcbuild、cmake、setuptools)
  • 直接与其他语言一起使用:
    • native-archive-plugin 支持 C/C++,但它与 Visual Studio 集成吗?
    • 还有其他我错过的支持更多语言的插件吗?
  • 为此编写自己的插件有多难?

问题

您推荐使用 Maven 管理非 Java 语言和工件的方法是什么?

I recently asked about a maven like tool for other languages but there hasn't been any responses (except for a few upvotes :). Given that, I've decided that maybe using Maven is good, but I'd have to write my own plugins to do simple things

This gives rise to a number of issues, and I'd like to hear about solutions that people are using in their daily process:

  • running other build/release systems and mostly use Maven for packaging/dependency management? (msbuild, vcbuild, cmake, setuptools)
  • working directly with other languages:
    • The native-archive-plugin supports C/C++, but does it integrate with visual studio?
    • Are there other plugins for more langugages, that I've missed?
  • how hard is it to write your own plugin for this?

Question:

What is your recommended approach for managing non-Java languages and artefacts with Maven?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亣腦蒛氧 2024-10-14 00:54:41

我目前正在使用 maven-scala-plugin,它工作得很好。我只将源代码放入 src/main/scala 而不是 java 并将 scala:compile 目标绑定到编译阶段,仅此而已。但scala与java非常接近,因此c++可能会出现问题。

I'm currenctly using maven-scala-plugin and it work just great. I only put my sources to src/main/scala instead of java and bind scala:compile goal to compile phase and that's it. But scala is very close to java, so the issues with c++ might arise.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文