Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove no-longer-used ome-xml dependency
- Loading branch information
Showing
2 changed files
with
1 addition
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ba0aa52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woopsie. Thank you very much @ctrueden.
But how do you find these things?
ba0aa52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, there was a bug report this morning where @hinerm figured out that having the TrackMate-dev and Bio-Formats update sites enabled at the same time didn't work. He isolated the issue to an
ome-xml.jar
present on the TrackMate-dev update site. And I thought to myself: "That's weird, I thought I had covered all Fiji components that use Bio-Formats, updating them to BF5.1 already. And I didn't know that TrackMate used Bio-Formats!" So then I started digging in the code.I first checked the POM, and saw that there was an
ome:ome-xml
dependency. So then I didgit grep 'import ome'
and found the sole place it was actually being "used"... and noticed that the usage was solely in the Javadoc! After that, the fix was easy: did the patch above, then ran a full build to make sure everything was still happy.For good measure, I also did
git grep 'import loci'
but found no hits. And then I ranmvn dependency:analyze
—a very useful tool—to double check that there were no other unused declared dependencies. (It found one false positive—j3d-core-utils
—which when removed actually breaks the build. Theanalyze
mojo is usually really spot-on—it was maybe just confused by theprovided
scope; I'm not sure.)So anyway, I think all references to Bio-Formats have been purged from TrackMate now. I see that the
TrackMate-dev-update-site
Jenkins job did run again, and Mark & I were hopeful that this would causeome-xml
to no longer be shadowed on the TrackMate-dev update site, but alas, it seems that TrackMate-dev still ships a complete overridden Bio-Formats. Strange, sincemvn dependency:tree | grep -C 5 'ome:'
returns nothing, meaning the Bio-Formats is not present at all in TrackMate's dependency hierarchy.I guess it's probably the case that the Jenkins job is not clearing out the old workspace, or not doing an
update-force-pristine
using the Updater, or... something similar. But we don't have time to investigate further. Right now, we have three "dev"-style update sites which all work differently (bin/upload-plugins-by-gav.sh
for SCIFIO-dev,bin/upload-plugin-from-maven.sh
for TrackMate-dev, andbin/upload-update-site.sh
for Bio-Formats). We really should unify them, to ease future maintenance and troubleshooting. But no time this month...