Link to home
Start Free TrialLog in
Avatar of gp
gpFlag for United States of America

asked on

Intellij JDK Maven related errors

In Intellij POM.XML I changed semeru JDK version from 8 to 11 got some tests failing i changed back to 8

<properties>
   <java.version>11</java.version>
<!--   <java.version>1.8</java.version>-->
</properties

Open in new window

Now I get Plugin 'org.apache.maven.plugins:maven-compiler-plugin:' not found.

I see red color on below  bolded line

<plugin>
<groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
Intellij built in tomcat server running on jbr11(jetbrains built in runtime 11). How to resolve these issues. When i do 'mvn install' in intellij terminal i do not see jdk version printing as well Please advise

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

<source>11</source>
<target>11</target>

Open in new window

Not the above but:
<source>${java.version}</source>
<target>${java.version}</target>

Open in new window

is what you need really. Values: either 1.8 or 11
Avatar of gp

ASKER

Thank you. When I do 'mvn clean install' from intellij IDEA I do not see JDK version getting printed. To change jdk 8 to jdk 11 of semeru what are different places I have to modify?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)