I wanted to try curve fitting using ImgLib2 and have been running into problems that seem to be Maven related. The class I want to use, LevenbergMarquardtSolver, is in the artifact imglib2-algorithm-gpl, but when I add this artifact as a depency to my pom file in Eclipse I get “Missing artifact net.imglib2:imglib2-algorithm-gpl:jar:0.1.3”. Somehow this artifact is however in my local repository, but if I run a very basic program using the LevenbergMarquardtSolver class it throws a NoClassDefFoundError: Jama/Matrix, which has indeed not been pulled in as a depency.
What I have also tried is, following the example of imglib2-tutorials (which is working for me inside Eclipse), set pom-imglib2 as a parent for this project. I have also tried to manually pull in some other ImgLib2 artifacts as depencies, but it always complains that it can’t find imglib2-algorithm-gpl, or imglib2-algorithm for that matter. And if Eclipse adds this as a “referenced library”, I get the jama.Matrix error as above.
I hope I haven’t overlooked some obviously available instructions, but I’d like to ask what is the correct way of doing what I just described. Thanks.