简体   繁体   English

ImageJ Maven依赖于maven中心吗?

[英]Are ImageJ Maven dependencies in maven central?

I am planning to use ImageJ for a webapp but it seems ImageJ maven dependencies are not in the central maven repository. 我打算将ImageJ用于webapp,但似乎ImageJ maven依赖项不在中央maven存储库中。

  • Am I right? 我对吗?
  • Is this going to change when ImageJ 2.x is released? 当ImageJ 2.x发布时,这会改变吗?

EDIT: Updated on July 4, 2014 to reflect the latest status. 编辑:2014年7月4日更新,以反映最新状态。

The builds on Maven Central with groupId gov.nih.imagej were done by a third party, but the official ImageJ 1.x builds are available from Maven Central with groupId net.imagej and artifactId ij starting from version 1.48r ; 的基础上的Maven中央与的groupId gov.nih.imagej是由第三方完成,但正式的ImageJ的1.x版本可以从Maven的中央带的groupId net.imagej和artifactId的ij从版本开始1.48r ; eg: 例如:

<dependency>
  <groupId>net.imagej</groupId>
  <artifactId>ij</artifactId>
  <version>1.48r</version>
</dependency>

Older official builds of ImageJ 1.x are available from the ImageJ Maven repository . ImageJ 1.x的旧官方版本可从ImageJ Maven存储库获得 It also has ImageJ2 builds which consist of several artifacts all prefixed by imagej- . 它还有ImageJ2构建,它由几个所有前缀为imagej-工件组成。 You can use it via the following configuration: 您可以通过以下配置使用它:

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

It is suggested to model your POM after the ImageJ Tutorials . 建议在ImageJ教程之后对POM进行建模。 These projects inherit from the ImageJ parent POM , which avoids repeated boilerplate configuration sections. 这些项目继承自ImageJ父POM ,避免了重复的样板配置部分。

We plan to begin submitting builds of ImageJ2 to Maven Central soon. 我们计划很快开始向Maven Central提交ImageJ2的版本。

For more information about using Maven with ImageJ, see: http://imagej.net/Maven 有关在ImageJ中使用Maven的更多信息,请参阅: http//imagej.net/Maven

You can find the ImageJ maven dependencies at mvnrepository.com . 您可以在mvnrepository.com找到ImageJ maven依赖

Listed versions are 1.40 - 1.46 . 列出的版本是1.40 - 1.46

You might be searching for this snippet? 您可能正在搜索此代码段?

<dependency>  
    <groupId>net.imagej</groupId>  
    <artifactId>ij</artifactId>  
    <version>[1.45s,)</version>  
</dependency>

Found it here . 在这里找到它。 There might be other useful maven snippets for you as well. 您可能还有其他有用的maven片段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM