Skip to content
Advertisement

Why compile command failed in Maven?

I’m new on Maven and I am trying to run through command prompt. Command mvn build successfully clean command. but it failed to build compile and test command. this is my cmd screen

enter image description here

JavaScript

Please suggest me what should I do?

Advertisement

Answer

Add two properties to specify the version of Java you want to target. Currently, it’s defaulting to 5 (which is no longer supported). For example,

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement