Posted by
dscho on
Jan 23, 2014; 8:32pm
URL: http://imagej.273.s1.nabble.com/Re-AW-How-to-handle-dependencies-tp5006206p5006247.html
Dear Heinrich,
On Thu, 23 Jan 2014, Heinrich Grabmayr wrote:
> Last May when you announced the personal update sites on
> sites.imagej.net, I set one up. Now I was thinking whether it makes
> sense to have the pom.xml upload the resulting jar there, directly. What
> do you think/what is the best way to handle this?
That is actually not possible. The reason is that we're talking about two
very different things: on the one hand, the Maven project for developers
which can be opened, modified, run and be debugged in an integrated
development environment and which should only run your plugin. On the
other hand, we are talking about update sites for users, for which you
have to set up such a user installation yourself to be sure that your
plugin works as expected even with other plugins being present in the
plugins/ directory.
The best way to help connect the both I could come up so far is the
imagej-maven-plugin which is configured automatically if you use
pom-scijava as your parent project.
The idea is that you can set the property imagej.app.directory to point to
your ImageJ/Fiji/ImageJ2 installation and the plugin will automatically
install your plugin (and all of its dependencies) into said directory.
Example: let's assume that you have unpacked a regular Fiji package onto
your Desktop/ and you have your plugin project sitting in
workspace/Heinrichs_Plugin/. Then calling
cd $HOME/workspace/Heinrichs_Plugin/
mvn -Dimagej.app.directory=$HOME/Desktop/Fiji.app
(appropriately quoted if your home directory's path contains spaces) will
copy your plugin to Desktop/Fiji.app/plugins/ and after testing it, you
can use the updater to upload your plugin to your update site as described
here:
http://fiji.sc/How_to_set_up_and_populate_an_update_siteIf you have ideas how to improve this or make it easier, please do let me
know!
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html