Antlr4 maven and Java 1.8 - maven

I am using Antlr4 to parse language.
I also use maven to build my target JAR.
It all works fine with JDK 1.7, but my parser tool should run as a part of a Java 8 based system. I tried to compile it as Java 1.8 but got excpetion that 1.8 is not supported.
Is there a solution?
regards,
id

Java 8 has been supported since ANTLR release 4.2.
Source: Release notes for ANTLR 4

Related

RunMojo compatibility problem with camel plugin

I have installed Camel plugin for IntelliJ.
To start debugging, we must create an ad-hoc application
The problem is that it gives me that error running it, when building the war file
org/apache/camel/maven/RunMojo has been compiled by a more recent
version of the Java Runtime (class file version 55.0), this version of
the Java Runtime only recognizes class file versions up to 52.0
I can't just find where the problem is. I have checked all the java versions defined everywhere and seems fine...
in the POM
so what can be the problem? Mojo version is
The plugin has been compiled with JDK 11 and requires the minimum JDK version 11 to work with.

Maven javadoc plugin ignores custom tags

Although the build was started using java version: 1.8.0_242, vendor: AdoptOpenJDK, I'm getting the warning -tag option is not supported on Java version < 1.4. When building with javadoc:jar, the build fails because of the custom tags.
This is a quite old build using maven-javadoc-plugin:2.10.4. I cannot just ramp it up to 3+, and 2.10.4 seems to be newest version of 2.10.
Any ideas?

which version of sonarqube gradle plugin compatible with jdk 7?

I am trying to integrate sonarqube gradle plugin with jdk7 but build is failing due to version mismatch.
Gralde version 4.3
JDK 1.7
Sonarqube-gradle plugin ??
2.0.1 was the last version to support Java 7
https://github.com/SonarSource/sonar-scanner-gradle/releases/tag/2.0.1
https://github.com/SonarSource/sonar-scanner-gradle/blob/2.0.1/build.gradle#L24..L25

which one is the latest version of maven to use

I am trying to use maven in our project and am new to it.
checking this https://maven.apache.org/download.cgi
3.6.0 version is latest version to download.
Someone was saying there is maven 4 is latest. Not sure where to download this from and can we use this for java 8.
Which one is latest version to use?
From https://maven.apache.org/download.cgi
Apache Maven 3.6.0 is the latest release and recommended version for
all users.
Works nicely with Java 8. Note that your IDE may bundle an older version in the unlikely case you run into problems.

Update to java-8, Maven restore jre to old version in eclipse kepler

I'm trying to upgrade to Java 8.
I'm using Eclipse kepler an maven for my java projects.
Did the following:
Installed jdk 8.
Changed my JAVA_HOME system variable to point the new jdk.
In my Eclipse Kepler I installed:
Eclipse Java 8 Support For Kepler
Java 8 Facet for Web Tools for Eclipse Kepler SR2
Java™ 8 support for m2e for Eclipse Kepler SR2
Then for each of my projects I made sure to update project facets, java compiler and jre (in java build path) to version 1.8.
also changed in each pom.xml the java version to 1.8.
The problem occurs when I do maven-->update project, this causes the project facets, compiler and jre settings to jump to 1.4 for some reason.
I can then manually (again) change those back to 1.8 and everything is fine but every time I update a maven dependency or run maven-->update project I encounter the issue again.
Any suggestions?
I had the same problem, I have
[Java 8 support for Eclipse Kepler SR2 ]
Eclipse Java 8 Support (for Kepler SR2) JDT, PDE
Java™ 8 support for m2e for Eclipse Kepler SR2
installed.
in Eclipse go to Help -> Eclipse Marketplace...,
go to the Install tab and Update those three (or uninstall and install again).
I also have 1.8 in pom.xml and it works when using Maven -> Update Project

Resources