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 Maven doclint-java8-disable profile with gson 2.6.2 #819

Closed
JulienGremillot opened this issue Mar 29, 2016 · 4 comments
Assignees

Comments

@JulienGremillot
Copy link

Apparently, I'm running into the same problem that some people had a few versions ago (cf. #588)

Project ID: com.google.code.gson:gson-parent
Reason: Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson-parent

I'm running Maven 2.2.1 but it's the first time I see this kind of problem.

@inder123 inder123 self-assigned this Mar 30, 2016
@inder123
Copy link
Collaborator

Submitted fix in #820

@AMill7
Copy link

AMill7 commented Jun 20, 2016

Hi, i have the same error. My problem is maven-ant-tasks. It is no longer maintained and it works with jdk lower then 1.8 so because of it, it comes to a error. The only solution that i found is to use gson 2.6.1.

@masonlouchart
Copy link

I had the same issue and I think the error comes from gson-parent JDK version. The range is invalid. To fix it I overwrite the maven-javadoc-plugin settings.

 <!--JavaDoc profile-->
<profile>
  <id>doclint-java8-disable</id>
  <activation>
    <jdk>[1.8,)</jdk>
  </activation>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <additionalparam>-Xdoclint:none</additionalparam>
        </configuration>
      </plugin>
    </plugins>
  </build>
</profile>

It simply disables the doclint for Java8. The difference with the original settings is:

-    <jdk>[1.8,</jdk>
+    <jdk>[1.8,)</jdk>

This error seems fixed since the v2.7.0.

@Marcono1234
Copy link
Collaborator

Looks like this was fixed by #820; though the current pom.xml does not contain that specific version range anymore anyway.

@eamonnmcmanus eamonnmcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2022
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

6 participants