Closed ctrueden closed 6 years ago
I can't reproduce the issue with my setup here, @ctrueden. Does the Fiji instance in your Fiji.app
directory have any update sites activate (or something like that)?
The NPE can (at least in theory) only be caused by a JAR file in the imagej.app.directory
with a non-SemVer version number or something like that. Could you provide a directory listing of Fiji.app/jars
?
There were no update sites active. The Fiji.app
folder in question was empty. The hope was for the imagej-maven-plugin to create and populate such a folder from scratch.
I can now no longer reproduce either. Not with the commit hash above, and not with the latest master (fiji/fiji@f83d69d08d8e2645531efaa32ab3a575819f8ddf). I am going to add some defensive programming around the areas in the stack trace, in the hopes to proactively avoid this sort of thing in the future.
The
Fiji.app
folder in question was empty. The hope was for theimagej-maven-plugin
to create and populate such a folder from scratch.
Oh, I had never thought about that use-case to be honest. In that case the code definitely has to be hardened.
I am going to add some defensive programming around the areas in the stack trace, in the hopes to proactively avoid this sort of thing in the future.
If you don't have the time to be rigorous about it, you can go ahead and mark places that you think need work with TODO
s and I can continue working on it. (Just ping me with the branch, I want to avoid duplicate effort)
I'll close this for now (since we can't reproduce). Thanks for adding preventive measures, @ctrueden!
As I said in https://github.com/imagej/imagej-maven-plugin/pull/34#issuecomment-408955651, I did later manage to reproduce the exception. I was wrong about it being an empty Fiji.app
installation. Rather, it was a macOS installation I had been updating over time for years. So it still had the old macosx-java3d
folder, with JAR files lacking version suffixes in the name.
I think that #34 is the right fix for this issue, so indeed this issue here can be closed now. Thanks!
One the current fiji/fiji master branch (fiji/fiji@969b2d4254d45af9bbd9200649859e0dc0611d57), running
mvn -X -Dimagej.app.directory=Fiji.app
fails to copy the dependencies, producing the following failure:Using imagej-maven-plugin 0.6.0 does not have this problem, but then does not benefit from the improved dependency handling.