Maven构建C++工程的插件-NAR
来源:互联网 发布:苹果手机壁纸软件 编辑:程序博客网 时间:2024/06/07 00:39
I highly recommend the maven-nar-plugin. I find it superior in many ways to the alternatives. It doesn't require listing out source files, handles multiple OSes and architectures, handles unit and integration tests, and generally follows "the maven way". It introduces a new kind of packaging - the NAR, or "native archive", that contains the artifact you care about (.dll, .so, .a, .exe, etc.) but also metadata, headers, etc. in a way that makes sense.
It does require a bit of up front work to package third-party software up into NARs, but its pretty straightforward. Once they are NARs, you simply use the normal Maven dependency mechanism to link with them, for example:
<dependency><groupId>cppunit</groupId>
<artifactId>cppunit</artifactId>
<scope>test</scope>
</dependency>
One drawback is that it does not appear to be actively maintained, but it is full-featured and is a rather impressive example of Maven plugin authoring.
上一篇:VC++ Watch窗口查看指针指向的数组
下一篇:VC++生成full dump文件
- 在OracleLinux5.11上构建基于L...
- 一种基于动态插件系统的移动测...
- TCPCOPY 1.0 安装使用
- BLE-NRF51822教程7-带协议栈工...
- OpenStack最新版本Liberty发布...
- test123
- 编写安全代码——小心有符号数...
- 使用openssl api进行加密解密...
- 一段自己打印自己的c程序...
- sql relay的c++接口
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
- Maven构建C++工程的插件-NAR
- Maven构建Web工程和Tomcat7插件使用
- 简单的maven工程的构建
- 使用maven 一步步构建springmvc的工程
- maven构建eclipse工程的编码问题
- MAVEN工程的构建与命令使用
- 快速构建一个可用的Maven工程
- Maven构建Java工程
- maven 构建 web 工程
- Maven构建Android工程
- Maven构建Java工程
- maven构建ssh工程
- maven java工程构建
- Maven - 构建 & 测试工程
- maven构建工程
- Maven构建Hadoop工程
- maven插件-构建ear
- C/C++:构建你自己的插件框架
- Android SDK更新失败的解决方法
- 随堂笔记
- VC++ Watch窗口查看指针指向的数组
- Android触碰事件
- 蓝牙发送多个文件
- Maven构建C++工程的插件-NAR
- VC++生成full dump文件
- 一个支持Git应用编程开发的第三方库(API)
- [STL]list的erase正确与错误用法
- C++ 类的静态成员详细讲解[静态成员变量链接错误]
- java反射详解
- C++ 迭代器失效
- STL容器erase的使用陷阱
- Visual Studio 2012 Ultimate RTM 序列号