Matlab dependency management
Asked Answered
M

3

8

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?

Medin answered 24/9, 2011 at 2:41 Comment(1)
Related question "MATLAB programming best practices for medium- to large-scale MATLAB Project" #5043261Threefold
D
3

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:

java -jar ivy.jar -retrieve "lib/[artifact].[ext]" -ivy ivy.xml -settings ivysettings.xml 

This will download the jars and place them into a "lib" directory (Or whatever directory Matlab uses).

Doralia answered 24/9, 2011 at 16:7 Comment(0)
O
0

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.

Ondrea answered 24/9, 2011 at 11:39 Comment(0)
A
0

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

Anora answered 8/5, 2016 at 1:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.