Hi Tobias,<div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">I just tried to download the sources for the scifio-4.4-SNAPSHOT.jar</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">*snip*</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">> 1.) Is this supposed to work or can I stop looking?</span></div><div><div><span style="font-family:arial,sans-serif;font-size:13px">> 2.) What could I be doing wrong...</span><br>
</div></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">Thanks for reporting this issue!</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><div>What you did is correct, and is supposed to work, as long as a "-sources" JAR was deployed to the Maven repository. Unfortunately, the Bio-Formats Maven build was not building or deploying those.</div>
</div><div><br></div><div>I have now fixed that for the 4.5-SNAPSHOT version of Bio-Formats, and deployed the sources to the Maven repository. I also changed ImgLib master to depend on 4.5-SNAPSHOT instead of 4.4-SNAPSHOT. Lastly, I filed a PR [1] so that the deployed sources will continue to be available for the latest development.</div>
<div><br></div><div>So to get the sources in your Eclipse, perform the following steps:</div><div><br></div><div>1) Pull the latest from imglib.git.</div><div><br></div><div>2) Refresh your Eclipse if necessary (select projects, right-click, Maven > Update Project...; but newer versions of Eclipse generally do this automatically).</div>
<div><br></div><div>3) Verify that under the project's Maven dependencies, the JAR has changed to scifio-4.5-SNAPSHOT.jar (instead of the old 4.4-SNAPSHOT version).</div><div><br></div><div>4) Try again to right-click it, Maven > Download Sources. It should work this time.</div>
<div><br></div><div>In the future, if you have this problem again, you can check yourself whether the sources are available by inspecting the Maven repository directly. For example, I took a look at:</div><div><br></div>
<div>
<a href="http://maven.imagej.net/content/repositories/snapshots/loci/scifio/4.4-SNAPSHOT/">http://maven.imagej.net/content/repositories/snapshots/loci/scifio/4.4-SNAPSHOT/</a><br></div><div><br></div><div>And saw that there were no "scifio-4.4-XYZ-sources.jar" files, which told me that the sources were not getting deployed.</div>
<div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] <a href="https://github.com/openmicroscopy/bioformats/pull/225">https://github.com/openmicroscopy/bioformats/pull/225</a></div><div class="gmail_extra">
<br></div><div class="gmail_extra">P.S. Alternately, you can of course clone the bioformats.git repository and "Import > Existing Maven Projects" into Eclipse to create a project dependency linkage instead of a JAR linkage. Then none of this "Downlaod Sources" stuff is necessary, and you can even hack on the Bio-Formats code if you want to test changes, etc.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 16, 2012 at 6:57 AM, Tobias Pietzsch <span dir="ltr"><<a href="mailto:pietzsch@mpi-cbg.de" target="_blank">pietzsch@mpi-cbg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello maven gurus,<br>
<br>
In Eclipse, I just tried to download the sources for the scifio-4.4-SNAPSHOT.jar which is referenced in the imglib2-io project<br>
(by right-clicking on the scifio jar in "Maven Dependencies" and<br>
selecting Maven > Download Sources)<br>
<br>
Didn't work.<br>
<br>
Does anyone know<br>
1.) Is this supposed to work or can I stop looking?<br>
2.) What could I be doing wrong...<br>
<br>
Thanks for any advice...<br>
<br>
best regards,<br>
Tobias<br>
<br>
______________________________<u></u>_________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/<u></u>listinfo/imagej-devel</a><br>
</blockquote></div><br></div>