<div dir="ltr">Hi Michael,<div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">How do I establish what Maven projects I need to include? </span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">One way to check is using the dependency-maven-plugin like so:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> mvn dependency:analyze</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">This will tell you:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">A) Dependencies you declared but do not actually use; and</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">B) Dependencies you did not declare directly, but actually need.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Note that this will only work if your project compiles successfully. In other words, it is easier to start with "too many" dependencies and pare down, rather than trying to "build up" from zero.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">So in your case, you can start with the ImgLib2 Examples dependencies block, run dependency:analyze, and adjust the POM according to its recommendations.</span></div><div><br></div><div><div>> When I go to my NetBeans project dependence, select Add dependency,</div><div>> then type SCIF to the query text box, I get a huge list of</div><div>> possibilities.</div></div><div><br></div><div>The dependency you probably want is io.scif:scifio (i.e.: a groupId of io.scif, and an artifactId of scifio). Presumably at the latest version. You can search for that here:</div><div><br></div><div> <a href="http://maven.imagej.net/index.html#nexus-search;gav~io.scif~scifio~~~">http://maven.imagej.net/index.html#nexus-search;gav~io.scif~scifio~~~</a><br></div><div><br></div><div>So your dependency block in this case would be:</div><div><br></div><div><div> <dependency></div><div> <groupId>io.scif</groupId></div><div> <artifactId>scifio</artifactId></div><div> <version>0.17.1</version></div><div> </dependency></div></div><div><br></div><div>Note that that block of XML is available for copy-pasting from the link above.</div><div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">I am completely new to maven</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>For more information, see:</div><div> <a href="http://imagej.net/Maven">http://imagej.net/Maven</a></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Curtis</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 6:05 PM, Michael Ellis <span dir="ltr"><<a href="mailto:michael.ellis@dsuk.biz" target="_blank">michael.ellis@dsuk.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I am investigating the using ImgLib2 for a project.<div><br></div><div>I am using NetBeans and have managed to create a NetBeans Mavern project and have added a dependency for ImgLib2 Core Library and that seems to be working OK.</div><div><br></div><div>I now want to add the least possible requirements for the purpose of opening some image files.</div><div><br></div><div>How do I establish what Maven projects I need to include? </div><div><br></div><div>I have cloned the ImgLib2 Examples project and got that working but that seems to include all manner of things that I suspect I do not need.</div><div><br></div><div>When I go to my NetBeans project dependence, select Add dependency, then type SCIF to the query text box, I get a huge list of possibilities.</div><div><br></div><div>I am completely new to maven and so do not know what I am doing with it!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>— Michael Ellis</div><div>Digital Scientific UK Ltd.</div><div><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></span><br>
</div>
<br></font></span></div><br>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
<br></blockquote></div><br></div>