imagej / imagej/ImageJ

Problems with importing packages - Maven Build

Open
#230 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
786
Forks
267
PR merge metrics
No merged PRs in 30d

Description

Bugs

When I tried to build the application using Maven, I encountered some import errors in the POM.xml file. The dependencies are:

- pom-scijava: version 31.1.0
- junit: no specific version
- loci: missing dependency

Affected Classes and Possible Fixes

pom-scijava 31.1.0:
- Unable to use any Maven commands.

![scijava](https://github.com/imagej/ImageJ/assets/90486302/ced92220-8abb-49dc-bc6e-68ac022654cb)

- Correction: Use the updated version 37.0.0
```XML

org.scijava
pom-scijava
37.0.0

```

JUnit
- Dependency import error
- Correction with version specification 4.13.2:

```XML

junit
junit
4.13.2
test

```

Folder /ImageJ/tests experiencing import issues with various classes:
- Correction by using the dependency from ImageJ itself (not recommended)
```XML

net.imagej
ij

```

Even so, some classes from the "tests" folder cannot import the "Loci" dependency. Even after deleting these classes, many JUnit tests start to fail, and some classes show deprecation warnings.
- I haven't found a solution for this.

What should be done:

- Find an alternative for using the ImageJ dependency.
- Replace the Loci dependency with another that performs the same task.

By making these changes, the expectation is that the Maven build will return to functioning normally.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the POM.xml dependency declarations and the import failures under /ImageJ/tests, then run the Maven build to reproduce the reported errors. Determine which dependencies are required without relying on the ImageJ dependency and identify the Loci replacement; done means the Maven build and the affected JUnit tests complete successfully without the reported import failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.