Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid version error for maven dependency #30

Closed

Conversation

immortaleeb
Copy link

Certain versions of maven fail to include this jar as a dependency
because they can't parse the version string [1.8,.
Those builds fail with the following error:

Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'com.github.jai-imageio:jai-imageio-jpeg2000:jar': Invalid JDK version in profile 'java8-and-higher': Unbounded range: [1.8, for project com.github.jai-imageio:jai-imageio-jpeg2000

To fix this I replaced the version string by [1.8,).

Note that we also needed to update to jai-image-io version 1.4.0 because 1.3.x contains the same issue.

Also see jai-imageio/jai-imageio-core#23

Certain versions of maven fail to include this jar as a dependency
because they can't parse the version string `[1.8,`.
Those builds fail with the following error:

```
Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'com.github.jai-imageio:jai-imageio-jpeg2000:jar': Invalid JDK version in profile 'java8-and-higher': Unbounded range: [1.8, for project com.github.jai-imageio:jai-imageio-jpeg2000
```

To fix this I replaced the version string by `[1.8,)`.

Note that we also needed to update to jai-image-io version 1.4.0 because 1.3.x contains the same issue.

Also see jai-imageio/jai-imageio-core#23
@stain
Copy link
Member

stain commented Dec 7, 2020

Closing as pom.xml no longer uses <profile> for Java 1.8 which should by now be a reasonable minimum for build.

@stain stain closed this Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants