I want to use Java 1.6 in Maven but 3.3.9 version is not capable of it. I am using Eclipse Mars and Maven 3.3.9 but don't want that because it doesn't support Java 1.6 so I have to degrade my Maven version.
Asked
Active
Viewed 1,175 times
-5
-
1Window-> preferernces. Type maven in the filter and choose installations – kimy82 Aug 03 '17 at 12:20
-
1Why would you want to do that? "Java 6 reached the end of its supported life in February 2013". Time to upgrade. JDK 8 is current production, and JDK 9 is on the way. https://en.wikipedia.org/wiki/Java_version_history#Java_SE_6 – duffymo Aug 03 '17 at 12:21
-
1This feels like something you could answer yourself with a very quick search. – DaveyDaveDave Aug 03 '17 at 12:21
-
1Possible duplicate of [Maven in Eclipse: step by step installation](https://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation) – Binyamin Regev Aug 03 '17 at 12:33
-
Maven is capable of using JDK 6 if you need. But you have to go via [Maven Toolchains](https://maven.apache.org/guides/mini/guide-using-toolchains.html). Using JDK 6 in Eclipse is another thing... – khmarbaise Aug 03 '17 at 13:11
2 Answers
0
From eclipse, you can go to Preferences->Maven->Installations. Click the Add button and put in your 3.2.5 install, then click it as the default and try building that way.

Ulug Toprak
- 1,172
- 1
- 10
- 21
0
This is a very easy question you can answer yourself by doing a quick search, e.g. Maven in Eclipse: step by step installation [closed]

Binyamin Regev
- 914
- 5
- 19
- 31