Matlab 依赖管理
我希望将依赖管理应用于大型 Matlab 项目。
该项目导入了大量的java库,以及一些编译的C++代码,以至于一些软件最佳实践现在变得更加重要。
有谁知道 Maven/Ivy 与 Matlab 一起使用的东西吗?
I am looking to apply dependency management to a large-scale Matlab project.
This project imports a large number of java libraries, as well as some compiled C++ code, to the extent that some software best practices are now becoming more essential.
Is anyone aware of something along the lines of Maven/Ivy for use with Matlab?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对 Matlab 不太熟悉,但听起来你的问题是你试图将一大堆二进制文件置于某种版本控制之下?
如果这些文件在 Maven Central 中可用,您可以使用我的 ant2ivy 脚本 生成一组起始的 ivy.xml 和 ivysettings.xml 文件。
ivy 的一大优点是它可以独立运行,如下所示:
这将下载jar 并将它们放入“lib”目录(或 Matlab 使用的任何目录)。
I'm not very familiar with Matlab, but sounds like your issue is that you're trying to put a large set of binary files under some sort of version control?
If those files are available in Maven Central, you can use my ant2ivy script to generate a starting set of ivy.xml and ivysettings.xml files.
One of the great things about ivy is that it can be run stand-alone as follows:
This will download the jars and place them into a "lib" directory (Or whatever directory Matlab uses).
matlab 并不是真正为大型项目而设计的。您必须编写自己的代码来检查所有必要的依赖项。
matlab isn't really made for large-scale projects. You'll have to come up with your own code to check for all necessary dependencies.
我使用 jitpack.io 和 zip 作为发布格式为 matlab 项目创建了一个简单的基于 Maven 的依赖关系管理。
示例项目 - https://github.com/ragavsathish/mmockito
可以在 https://github.com/ragavsathish/matlab-simple-archetype
请提供您对哪些方面可以进一步改进的意见
I created a simple maven based dependency management for matlab projects using jitpack.io and zip as release format.
Sample project - https://github.com/ragavsathish/mmockito
Simple archetype can be found in https://github.com/ragavsathish/matlab-simple-archetype
Please provide your comments on what can be improved further