Imagej-maven-plugin exclude file from being copied



Is it possible to specifically exclude files from being copied into the folders during the install process?


It’s not supported. What’s your use case?


I am importing own developments from github like this:



And I am using master-SNAPSHOT to have the latest version. These dependencies however already exist as jars (with a version number) within Fiji, because those jars that are part of my update site. Thus I have them twice in my local Fiji, once with master-SNAPSHOT and once with the version number. I guess the proper way would be to also reference them with the version number when importing them from github?


Could you try to add -Dimagej.deleteOtherVersions="always" to your Maven invocation?

I assume that the issue is master-SNAPSHOT being a non-SemVer version number. If it were, you could decide on when existing files are overwritten.


I (i.e. intellij) tried like this:

/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/tischer/Documents/fiji-slurm "-Dmaven.home=/Applications/IntelliJ IDEA" "-Dclassworlds.conf=/Applications/IntelliJ IDEA" "-javaagent:/Applications/IntelliJ IDEA IDEA" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA" org.codehaus.classworlds.Launcher -Didea.version=2017.3.4 -Dimagej.deleteOtherVersions=always clean install

Is that correct like this? I still get the error.


Looks fine to me. If the issue persists, it’s due to the non-standard version number.