error: Source option 6 is no longer supported. Use 7 or later
What should I do?
I updated the pom.xml file so that it uses version 7 and that seemed to successfully build it.
On Mon, Jun 29, 2020 at 6:16 PM Brian Brazil <brian....@robustperception.io> wrote:On Mon, 29 Jun 2020 at 13:30, Anurag Vaidya <ajv...@bucknell.edu> wrote:I am trying to use the prometheus JMX exporter. I have cloned the repo on my local device and I am running the "mvn package" command. However, I end up getting the following error:error: Source option 6 is no longer supported. Use 7 or later
What should I do?
It sounds like the maven setup you're using has dropped support for Java 6, which the JMX exporter still supports. You can either use an older maven, or if you don't need Java 6 support switch the version in the pom.--Brian Brazil