I’m trying to move from writing ImageJ 1.x plugins to ImageJ2 but I’m having real problems getting my IDE (Eclipse) to work with the pom.xml file. I cloned the imagej example command from GitHub and followed the ReadMe file but I cannot get net.imageJ to work from the pom. I’ve checked https://maven.scijava.org for the correct groupID etc but Eclipse reports it as not resolvable in the .java file.
This is how I have the dependency in the pom.xml
When I build the project the pom file also shows an error which is as follows:
Failed to execute goal on project e[36mGaussFilteringe[m: e[1;31mCould not resolve dependencies for project com.mycompany:GaussFiltering:jar:0.1.0-SNAPSHOT: Could not transfer artifact net.imagej:imagej:jar:1.52u from/to scijava.public (https://maven.scijava.org/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targete[m (org.scijava:scijava-maven-plugin:1.1.1:eclipse-helper:default:process-classes)
It looks like net.imagej is the problem but I can’t see where I’m going wrong as its a working example on Github and every other tutorial I’ve looked at declares the dependency in the same way. Totally baffled, I wasn’t expecting problems this quickly in my switch over but any help would be greatly appreciated.