mvn compile throws errors
See original GitHub issueHello,
I’m working on this guide, but when I run mvn compile
I get the following error:
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
I’m on OS X. mvn -v
shows:
Maven home: /Users/matthuntington/Desktop/apache-maven-3.5.0
Java version: 9, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
echo $JAVA_HOME
shows:
/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
echo $PATH
shows:
/Users/matthuntington/Desktop/apache-maven-3.5.0/bin/:/Users/matthuntington/.rbenv/bin:/Users/matthuntington/.rbenv/shims:/Users/matthuntington/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
any suggestions? Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:23
- Comments:34 (1 by maintainers)
Top Results From Across the Web
Maven Compile Error - java - Stack Overflow
The problem is that maven-compiler-plugin in Maven2 by default uses -source 1.3 and target 1.3. You can fix it by adding this to...
Read more >Fix Maven error in Eclipse: No compiler is provided ... - YouTube
How to fix the error when compiling code using Maven in Eclipse IDE: COMPILATION ERROR... BUILD FAILURE...Failed to execute goal ...
Read more >How to resolve compiler errors while running Maven Project ...
In this Session no 7 in Maven series, I have explained following topics:(Very IMP for Interviews)Q. How to resolve following errors when ...
Read more >When compiling a project, Maven throws an error - Ask Ubuntu
With latest maven it is working. mvn -v Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: /opt/maven Java version: 17, ...
Read more >Maven Errors - CodenBox AutomationLab
Problem: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ... OR: After adding...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solution: I added
inside the project tag in pom.xml
mahuntington great solution . Just add in pom
and it will compile