Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Setting Maven-compiler-version to Amazon Corretto?

 
Ranch Hand
Posts: 325
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope Beginning Java is okay for this question.  I'm trying to learn Spring and SpringBoot . I have a mentor who has me learning by working on a small project and one task I was given has confused me but I won't meet with him until Friday.  I can email but I just want to run this by someone before I bring it up to him because I think I may have missed something.

I need to change the application's Java version from 1.8 to Amazon Corretto 8.
Maven currently has the maven-compiler-plugin configuration set with source = 1.8 and target = 1.8.

When I was Googling for information about this it looks like this is just set in the project's IDE or I guess the machine it's being built on?  So it's not a POM change ?

https://unix.stackexchange.com/questions/548172/maven-compiler-version-for-amazon-corretto





 
Rancher
Posts: 181
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compile all my projects in 1.8. Example:

This should work with Java 8. If this is the way your pom is currently setup, then you probably just need to download the SDK.

Locally:
File -> Project Structure -> Project SDK
If the SDK version isn't compatible with java 1.8, you'll see a lot of errors

You should be able to use Java 1.8 with Amazon Coretto Java 8. That would be a change on the machine to install that SDK and use it, probably. I'd imagine it would be on some sort of build server. Do you use Jenkins?
 
Lisa Austin
Ranch Hand
Posts: 325
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Zachary Griggs wrote:I compile all my projects in 1.8. Example:

This should work with Java 8. If this is the way your pom is currently setup, then you probably just need to download the SDK.

Locally:
File -> Project Structure -> Project SDK
If the SDK version isn't compatible with java 1.8, you'll see a lot of errors

You should be able to use Java 1.8 with Amazon Coretto Java 8. That would be a change on the machine to install that SDK and use it, probably. I'd imagine it would be on some sort of build server. Do you use Jenkins?



Thank You.  I was just confused I think by what was being asked by my mentor.  Things seem like it should be simple but if it's too simple it seems wrong. LOL.  Thanks for confirming for me.
 
Wanna see my flashlight? How about this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic