通过 Maven 的各个 ImageJ2 库的组和工件名称是什么?

What are the group and artifact names for individual ImageJ2 libraries through Maven?

我昨天的大部分时间都在试图弄清楚要在我的 pom.xml 文件中使用什么,这样我就可以获得我需要的 ImageJ2 库 而无需继承 ImageJ 父 pom。我想出了以下设置,但它们远非最佳:

    ...
    <repository>
        <id>imagej.public</id>
        <url>http://maven.imagej.net/content/groups/public</url>
    </repository>
    ...
    <dependency>
        <groupId>net.imagej</groupId>
        <artifactId>imagej</artifactId>
        <version>2.0.0-rc-28</version>
    </dependency>
    ...

我遇到的问题是,ImageJ2 的 all 似乎都是通过这种方式下载的。有一个巨大的依赖树,现在我的 eclipse 类路径中有大约 60 多个 jar 文件。

我如何挑选和选择我需要的各个库,以及其中哪一个是基本版本(例如 ij.jar 用于 ImageJ1)?我如何找到可用的版本号?

all of ImageJ2 is downloaded this way.

net.imagej:imagej确实是聚合了所有ImageJ2组件的应用级项目。

How can I pick and choose the individual libraries that I need And how can I find the available version number(s)?

ImageJ2 的所有组件都是 Mavenized 的,可以使用 directly/independently,与您包含的方式相同 net.imagej:imagej。有多种方法可以浏览组件和可用版本 - 例如:

without inheriting from the ImageJ parent pom.

即使您没有将 pom-imagej 声明为父 pom,如果您最终使用多个 ImageJ 组件,您将受益于 scope:importing 它(或其他适当的 BOM)。依靠 BOM 依赖管理将有助于确保您的组件的版本可以很好地协同工作。

which one of them is the base version (like ij.jar was for ImageJ1)

这实际上取决于您要开发的内容。 ImageJ wiki 给出了 overview of how functionality is divided in ImageJ2. There is also a comprehensive development section.

有关 ImageJ2 开发的更多技术问题,您可能还想尝试 ImageJ-devel mailing list