maven-native-plugin是否广泛用于使用maven构建C ++项目? [英] Is the maven-native-plugin widely used to build C++ projects using maven?

查看:780
本文介绍了maven-native-plugin是否广泛用于使用maven构建C ++项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我专业地进行C ++开发以来,已经有一段时间了,我想了解C ++开发的当前状态在很多领域。我最近的大部分工作都是Java,大量使用Maven。当我上次进行C ++开发工作时, make 的一些变体被广泛接受为构建C ++项目的方式(我们也使用 make 要在我们的混合Java和C ++项目中构建Java代码,尽管我相信 ant 开始成为主流)。

It's been a little while since I did C++ development professionally and I'd like to get caught up on what the current state of C++ development is in a number of areas. Most of my recent work has been Java, making heavy use of Maven. When I last did C++ development for work, some variant of make was widely accepted as the way to go for building C++ projects (we were also using make to do builds the Java code in our mixed Java and C++ projects, although I believe ant was starting to become mainstream).

我喜欢使用Maven进行构建。我的问题不是讨论使用Maven的相对优点,而是要确定 Native Maven插件,用于构建C ++项目以及人们对此的体验。或者,是否有一个新的通用工具链用于C ++构建,有很大的动力?

I like using Maven for builds. My question is not to debate the relative merits of using Maven, but to determine what the level of adoption is for the Native Maven Plugin for building C++ projects and what people's experience with this has been. Alternately, is there a new common toolchain for C++ builds that has a lot of momentum?

推荐答案

根据我的经验,C ++社区仍然没有标准化的常见构建工具。虽然GNU autotools(和GNU make)在开源项目中仍然很受欢迎,但其他选项包括 SCons CMake makepp bjam / jam。

In my experience, the C++ community still hasn't standardised on a common build tool. While the GNU autotools (and GNU make) are still popular for Open Source projects, other options include SCons, CMake, makepp and bjam/jam.

就个人而言,我只会将Maven用于一个主要用Java编写并带有小JNI部分的项目。

Personally, I would only use Maven for a project that's mainly written in Java with a small JNI part.

这篇关于maven-native-plugin是否广泛用于使用maven构建C ++项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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