4

I am planning to use ImageJ for a webapp but it seems ImageJ maven dependencies are not in the central maven repository.

  • Am I right?
  • Is this going to change when ImageJ 2.x is released?
balteo
  • 23,602
  • 63
  • 219
  • 412

3 Answers3

7

EDIT: Updated on July 4, 2014 to reflect the latest status.

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; e.g.:

<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. It also has ImageJ2 builds which consist of several artifacts all prefixed by 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. These projects inherit from the ImageJ parent POM, which avoids repeated boilerplate configuration sections.

We plan to begin submitting builds of ImageJ2 to Maven Central soon.

For more information about using Maven with ImageJ, see: http://imagej.net/Maven

ctrueden
  • 6,751
  • 3
  • 37
  • 69
3

You can find the ImageJ maven dependencies at mvnrepository.com.

Listed versions are 1.40 - 1.46.

maba
  • 47,113
  • 10
  • 108
  • 118
  • Thanks! I am going to use the 1.46 dependency. Any idea when the 2.x version will be released to the repository listed above? – balteo Sep 17 '12 at 12:15
  • You're welcome. I have no idea when 2.x versions will be accessible. Sorry :-( – maba Sep 17 '12 at 12:16
  • Never mind. I'll keep an eye on the progress of the dev team and use the 1.46 in the meantime. :-) – balteo Sep 17 '12 at 12:19
  • Note that the `gov.nih.imagej:imagej` artifacts were done by a third party. The official releases can be obtained from maven.imagej.net. See my answer for details. – ctrueden Dec 04 '12 at 16:54
1

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.

ctrueden
  • 6,751
  • 3
  • 37
  • 69
Matthias Kricke
  • 4,931
  • 4
  • 29
  • 43