Matlab Dependency Management

I want 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 advanced software methods are now becoming more important.

Does anyone know something like Maven / Ivy for use with Matlab?

+7
source share
3 answers

I am not very familiar with Matlab, but it seems your problem is that you are trying to place a large set of binaries under some version control?

If these files are available in Maven Central, you can use the ant2ivy script to create an ivy starter kit . xml and ivysettings.xml .

One of the great features of ivy is that it can work autonomously as follows:

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

This will load the jars and put them in the "lib" directory (or any other directory that Matlab uses).

+3
source

matlab is really not intended for large-scale projects. You will have to come up with your own code to check all the necessary dependencies.

0
source

I created a simple maven based dependency management for matlab projects using jitpack.io and zip as the release format.

Sample project - https://github.com/ragavsathish/mmockito

A simple archetype can be found at https://github.com/ragavsathish/matlab-simple-archetype

Please provide your comments on what can be improved further.

0
source

All Articles