<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Curtis,<div><br></div><div>So, I took a crack at getting a Maven project setup for the "JEX plugin" with a "hello world" run method. I think it is working so far (mostly). I think I likely need to add more dependancies because when I run and show ImageJ so that I may select JEX from the menu, I find that some of the other menu commands work and others give an error message (I think I at least need to add the ij-options project). However, I figure this is a point to get feedback on what I've done to set it up so far...</div><div><br></div><div>1) The maven project template was very helpful. Thanks. Although I really don't have much of an idea of what I should tweak from here. I figure mainly the name of the project and dependancies. Also, the template is based on ImageJ 1.x but I'm doing ImageJ2... I will be showing all the Command.class plugins within the JEX plugin as batchable commands within JEX and I don't know what all of those may depend on. So probably I should add all the ij projects as dependancies, right? If you have any other key words to search regarding maven project properties to search the web for to learn more about... I'm willing.</div><div><br></div><div>2) I tried to set up dependancies with my forked ImageJ2 maven projects in my eclipse workspace. Not sure how this will affect things downstream or if the magic of Maven will find jars if there are no projects when others clone this new project's repository to contribute. Advice?</div><div><br></div><div>3) Right now, the versions of the dependencies are fixed instead of flexible (e.g., using ${project.version} parameters) I have no idea what I'm doing :-) but when I changed the dependancy version to ${project.version} as done in the poms of the other ij projects, it gave an error. Mainly I just wanted this to point to the newest versions. Maybe fixed version is better / less prone to random new bugs as other things get updated so I should leave it as is for now and update version numbers manually moving forward?</div><div><br></div><div>4) If I make JEX a Command.class plugin, will the JEX plugin act like a modal window, blocking interaction with the main IJ2 UI while "running". If so, is there an alternative that won't block? I was hoping they could be open, operating, and interacting at the same time. Is there a more appropriate plugin class to do this?</div><div><br></div><div>5) Can you pass the singular ImageJ context/gateway as a parameter to the plugin or only services and whatnot? i.e., can I do the following?</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>@Parameter</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>private ImageJ ij;</div><div><br></div><div>6) I figure once things look a bit more reasonable as far as project readiness, I'll do the update site thing :-) Thanks for the tips and website. The instructions seem fairly straight forward.</div><div><br></div><div>Thanks in advance, for any help you can provide. The github repo for what I've done is here... (<a href="https://github.com/jaywarrick/JEX_IJ2">https://github.com/jaywarrick/JEX_IJ2</a>) I've added you as a collaborator. I imagine this repo is what Erwin and I will build up, pulling JEX code in and cleaning/converting things as we do so.</div><div><br></div><div>Cheers,</div><div><br></div><div>Jay</div><div><br><div><div><div>On Apr 17, 2014, at 10:32 AM, Curtis Rueden <<a href="mailto:ctrueden@wisc.edu">ctrueden@wisc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Jay & Erwin,<div><br></div><div><div>> Erwin and I are exploring the idea of a new version of JEX that would</div><div>> itself be a plugin of ImageJ.</div><div><br></div><div>That would be fantastic.</div>

<div> </div><div>> There are a few different ways this could be developed... Either as</div><div>> part of the imagej managed code base (i.e. a package within a current</div><div>> ImageJ2 project or as its own maven project that is updated and</div>

<div>> managed like the rest of the ImageJ2 suite of projects like ij-app,</div><div>> ij-core, etc.) or as a completely separate project that we jarify and</div><div>> allow users to put into the plugin folder of ImageJ afterward.</div>

</div><div><br></div><div>The model we are targeting is "one Git repository per JAR file" with each being a Maven module with its own version. We have already completed this transition with the Fiji project [1], and ImageJ2 will be completely structured that way soon as well. This approach has many advantages:</div>

<div><br></div><div>1) Stable release version couplings between components, so that if an upstream component changes, downstream components are not affected/broken until they intentionally upgrade to the newer version.</div>

<div><br></div><div>2) Independent versioning of each component. When a bug is fixed in a particular component, we just release a new version of that component. No need to cut vacuous releases of the entire collection of ImageJ2 JARs.</div>

<div><br></div><div>3) Easier and less intimidating to contribute to an individual plugin: just fork that one repo, push your changes and file a PR. No need to clone an all-encompassing fiji.git or imagej.git repository.</div>

<div><br></div><div>Further, in the Fiji project, each module is now what we call an "external plugin" that lives in its own repository, either in the <a href="http://github.com/fiji">github.com/fiji</a> namespace, or in some cases [2, 3] in the plugin developer's personal space (doesn't matter that much).</div>

<div><br></div><div>ImageJ2 and Fiji support multiple update sites [4]. There is a core ImageJ2 update site [5], a core Fiji update site [6], and many others as well [7]. JEX would be a perfect fit for its own update site, giving you full control over every aspect of your releases while leveraging the power of ImageJ2 for deployment to your users.</div>

<div><br></div><div><div>In short: I would suggest creating a personal update site for JEX and serving your releases from there. That way, anyone using ImageJ2 or Fiji can install JEX simply by checking a box. For details, see:</div>

<div><br></div><div>    <a href="http://fiji.sc/How_to_set_up_and_populate_an_update_site">http://fiji.sc/How_to_set_up_and_populate_an_update_site</a></div></div><div><br></div><div>And as you know I would certainly advise structuring JEX as a Maven project, though it is not required. Here is a template you can use as a starting point:</div>

<div><br></div><div>    <a href="https://github.com/imagej/minimal-ij1-plugin">https://github.com/imagej/minimal-ij1-plugin</a></div><div><br></div><div>Very happy to answer any questions our issues you have on your journey. :-)</div>

<div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] <a href="https://github.com/fiji">https://github.com/fiji</a></div><div>[2] <a href="https://github.com/tferr/ASA">https://github.com/tferr/ASA</a><br>

</div><div>[3] git://<a href="http://repo.or.cz/trakem2.git">repo.or.cz/trakem2.git</a></div><div>[4] <a href="http://fiji.sc/Update_Sites">http://fiji.sc/Update_Sites</a></div><div>[5] <a href="http://update.imagej.net/">http://update.imagej.net/</a></div>

<div>[6] <a href="http://fiji.sc/update/">http://fiji.sc/update/</a></div><div>[7] <a href="http://fiji.sc/List_of_update_sites">http://fiji.sc/List_of_update_sites</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Apr 17, 2014 at 9:41 AM, Jay Warrick <span dir="ltr"><<a href="mailto:warrick@wisc.edu" target="_blank">warrick@wisc.edu</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">Sorry to clog your inbox. Evidently this didn't send last night and it got sent without closing the email... <div><br></div><div>Any ideas or suggestions on a development approach would be welcome. You have sold me/us on your approach to application development. We want to integrate ourselves the best way possible but don't want to bring the project down by being less professional in our coding abilities and practices. We'll do our best but I'm not sure we'll ever be able to be on par with the rest of you guys :-)</div>

<div><br></div><div>I look forward to hearing from you. Thanks,</div><div><br></div><div>Jay (and Erwin)</div><div><br><div><br><div>Begin forwarded message:</div><br><blockquote type="cite"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<span style="font-family: Helvetica;"><b>From: </b></span><span style="font-family:'Helvetica'">Jay Warrick <<a href="mailto:warrick@wisc.edu" target="_blank">warrick@wisc.edu</a>><br>

</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family: Helvetica;"><b>Subject: </b></span><span style="font-family:'Helvetica'"><b>JEX</b><br>

</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family: Helvetica;"><b>Date: </b></span><span style="font-family:'Helvetica'">April 17, 2014 at 9:35:04 AM CDT<br>

</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family: Helvetica;"><b>To: </b></span><span style="font-family:'Helvetica'">Curtis Rueden <<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>><br>

</span></div><br><div><div dir="auto" style="word-wrap:break-word">Hi Curtis,<div><br></div><div>Erwin and I are exploring the idea of a new version of JEX that would itself be a plugin of ImageJ.</div><div><br></div><div>

There are a few different ways this could be developed... Either as part of the imagej managed code base (i.e. a package within a current ImageJ2 project or as its own maven project that is updated and managed like the rest of the ImageJ2 suite of projects like ij-app, ij-core, etc.) or as a completely separate project that we jarify and allow users to put into the plugin folder of ImageJ afterward. What might you recommend? We don't want to impose or muddy up your architecture but also really like the idea of being well-integrated with your current lifecycle management schemes (i.e. maven dependancies, compiling, versioning, and updating of jars (Jenkins etc).</div>

<div><br></div><div><br></div></div></div></blockquote></div><br></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></body></html>