first time using maven, searching for 'simpleitk' in mvnrepository.com returns this:
<!-- https://mvnrepository.com/artifact/org.itk.simple/simpleitk -->
<dependency>
<groupId>org.itk.simple</groupId>
<artifactId>simpleitk</artifactId>
<version>0.9.0</version>
<type>pom</type>
</dependency>
this does not work as it is not in the central repository used by maven. error: Could not find artifact org.itk.simple:simpleitk:jar:0.9.0
I find out that there are the tag <repositories>, where i can put a <repository>, i tried:
<repository>
<id>ImageJ</id>
<url>https://maven.imagej.net/content/repositories/releases/</url>
</repository>
<repository>
<id>mvnrepository</id>
<name>mvnrepository</name>
<url>https://www.mvnrepository.com</url>
</repository>
error: Could not transfer artifact org.itk.simple:simpleitk:pom:0.9.0 from/to mvnrepository (https://www.mvnrepository.com): status code: 403, reason phrase: Forbidden (403)
Can anybody help me plz?
i try to search a lot for 'simpleitk' dependencies for maven but cant find anything.
Only the POM for Simpleitk is available from the ImageJ repository. The binaries are not available there. You can see that by browsing the repository:
https://maven.imagej.net/content/repositories/releases/org/itk/simple/simpleitk/0.9.0/
As for solving the problem of how to get it working with Maven, unfortunately it might not be as simple as adding a Maven repository and dependency. From this post on the ImageJ list, it was asked:
And the response:
There are instructions on how to get it working with Java here:
https://simpleitk.readthedocs.io/en/master/setUp.html#setup-java
However, I did find the simpleitk binaries in this repository:
https://maven.scijava.org/content/groups/public/org/itk/simple/simpleitk/0.9.0/
There is a JAR in there - but I haven't tried it. It sounds like from all the previous info that simply having a JAR won't be enough because you'll need native bindings installed on your system, but you can give it a try by adding:
No guarantees it will work though.