error: Source option 6 is no longer supported. Use 7 or later

12 views
Skip to first unread message

Anurag Vaidya

unread,
Jun 29, 2020, 8:30:20 AM6/29/20
to Prometheus Users
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?

Brian Brazil

unread,
Jun 29, 2020, 8:46:07 AM6/29/20
to Anurag Vaidya, Prometheus Users
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.

--

Anurag Vaidya

unread,
Jun 29, 2020, 8:47:36 AM6/29/20
to Brian Brazil, Prometheus Users
I updated the pom.xml file so that it uses version 7 and that seemed to successfully build it. 

Brian Brazil

unread,
Jun 29, 2020, 9:03:10 AM6/29/20
to Anurag Vaidya, Prometheus Users
On Mon, 29 Jun 2020 at 13:47, Anurag Vaidya <anurag...@bucknell.edu> wrote:
I updated the pom.xml file so that it uses version 7 and that seemed to successfully build it. 

You could also use the pre-built jars up on the Central Repository.

Brian
 

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.

--
Reply all
Reply to author
Forward
0 new messages