src/test/resources
instead.
src/test/java
and then put the TIFF into src/test/resources
and then it will keep working. Alternately, you can use just hardcode a relative file path to ../../../../../data/mt.tif
or whatever instead of using Class.getResource
. If it's in your test code, it isn't very important.
$ mvn dependency:analyze
...
[WARNING] Used undeclared dependencies found:
[WARNING] org.scijava:scijava-common:jar:2.56.0:compile
[WARNING] io.scif:scifio:jar:0.27.2:compile
[WARNING] net.imglib2:imglib2:jar:2.7.0:compile
[WARNING] net.imagej:imagej-ops:jar:0.29.0:compile
[WARNING] net.imagej:imagej-common:jar:0.20.1:compile
[WARNING] Unused declared dependencies found:
[WARNING] net.imagej:imagej-legacy:jar:0.20.0:runtime
[WARNING] junit:junit:jar:4.11:test
imagej-legacy
<optional>true</optional>
because you don't want others to inherit that from you.
ImagePlus.getRoi()
to get the active ROI on the image. See https://github.com/fiji/KymographBuilder/blob/master/src/main/java/fiji/plugin/kymographbuilder/Utils.java#L148null
.
RoiManager
)