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

invalid version range in java8-and-higher profile #23

Closed
jameyg42 opened this issue Feb 25, 2016 · 4 comments
Closed

invalid version range in java8-and-higher profile #23

jameyg42 opened this issue Feb 25, 2016 · 4 comments
Milestone

Comments

@jameyg42
Copy link

the version range in the java8-and-higher is missing the closing )

The invalid range may cause issues with certain versions/implementations of Maven.

see also
google/gson#596
deeplearning4j/deeplearning4j-examples#76

butchhoward added a commit to butchhoward/jai-imageio-core that referenced this issue May 4, 2016
@jadrake75
Copy link

+1 after a complete server rebuild and finding the old imageio is not to be found with maven, I came across this github port.... but now the Java 8 issue is blasting me out of the water....

@Snowynight2011
Copy link

Snowynight2011 commented Dec 22, 2016

+1 I had the same problem when building it with Maven 2:
"Unable to get dependency information: Unable to read the metadata file for artifact 'com.github.jai-imageio:jai-imageio-core:jar': Invalid JDK version in profile 'java8-and-higher': Unbounded range: [1.8, for project com.github.jai-imageio:jai-imageio-core
com.github.jai-imageio:jai-imageio-core:jar:1.3.1"

The fix is very simple - simply add a closing ) in your pom as below:

<profile>
      <id>java8-and-higher</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>

Some of our projects can't be changed to use later Maven versions yet for various reasons. So could you please fix this ASAP?

Many thanks,
Joe

stain added a commit that referenced this issue Mar 30, 2017
Repair Issue: invalid version range in java8-and-higher profile #23
@stain
Copy link
Member

stain commented Mar 30, 2017

Thanks to @butchhoward for #25 - sorry for missing this. I will try to make a new release this Easter, meanwhile would any of you care to test the latest master as a SNAPSHOT?

@stain stain closed this as completed Mar 30, 2017
@stain stain added this to the 1.3.2 milestone Mar 30, 2017
@asraf344
Copy link

@stain : Nice to see the fix. When you are planning to release 1.3.2 ?
Also, I am hoping you have fixed it for "jai-imageio-jpeg2000" as well ?

umjammer added a commit to umjammer/jai-imageio-jpeg2000 that referenced this issue Nov 9, 2017
immortaleeb added a commit to immortaleeb/jai-imageio-jpeg2000 that referenced this issue Oct 25, 2019
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
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

No branches or pull requests

5 participants