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.

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(1666) | 评论(0) | 转发(0) |
0

上一篇: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...
给主人留下些什么吧!~~