Maven pom: find repository

Hello,
I have a probably very simple maven question.
For instance, this works very nice to find the dependency:
http://maven.imagej.net/#nexus-search;classname~bdv.util.BdvFunctions
suggesting:

    <dependency>
        <groupId>sc.fiji</groupId>
        <artifactId>bigdataviewer-vistools</artifactId>
        <version>1.0.0-beta-4</version>
    </dependency>

However where do I have to look on this webpage to find which repository I have to add?

Hi @Christian_Tischer,

you’ll find the repository at the bottom of the artifact tab:

In the list of Repositories (from the sidebar), you’ll find that e.g. the path for the repository ‘Releases’ is:
http://maven.imagej.net/content/repositories/releases/


In your own project’s pom.xml, it should be sufficient to just add the public repository group, as it’s shown in the example-imagej-command project:

Thanks a lot for the fast answer! That works!

Two more questions:

1.) Does the repository id matter?
The way you showed one can find the repository url, can I just choose any id?

2.) Do you know who makes this nice webpage: http://maven.imagej.net/? Could it be suggested to add the repository import statement to the Maven tab?

I guess you can just try :wink:
As I always just copied the code from the example project, and never need to change it because all artifacts in the ImageJ universe are served by that same repository group, I never actually cared.

Just looking at the page title and doing a quick search, it seems to be this open source project:

ok. this combination works:

  <parent>
      <groupId>org.scijava</groupId>
        <artifactId>pom-scijava</artifactId>
        <version>14.0.0</version>
      <relativePath />
  </parent>

   <repositories>
        <repository>
            <id>imagej.public</id>
            <url>http://maven.imagej.net/content/groups/public</url>
        </repository>
   </repositories>

<dependencies>

    <dependency>
        <groupId>net.imagej</groupId>
        <artifactId>ij</artifactId>
    </dependency>

Thanks! In fact I think I am mainly having issues understanding when IntelliJ really works from the pom.xml and when it is using some locally cache .jar files; this makes the debugging really confusing. Do you know IntelliJ?

turns out I needed to actually only add one more repository for using some imglib1 algorithms, which are as far as I know not yet available in imglib2.

    <repository>
        <!-- needed for
        - mpicbg.imglib.algorithm
        - mpicbg.imglib.image
        -->
        <id>imagej.releases</id>
        <url>http://maven.imagej.net/content/repositories/releases</url>
    </repository>

And thanks again for pointing out the imagej.public repository. For me neither of those sites: http://maven.imagej.net/ nor this https://mvnrepository.com/ really point to it.