I am trying to update from java 8 to OpenJdk 11. When I do mvn install from terminal, build works fine. But fails from (mac) intelliJ mvn install

Below is the startup command

> 
> /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/myhome/Documents/WORKSPACES/something/develop "-Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" -Didea.launcher.port=53262 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea\_rt.jar" com.intellij.rt.execution.application.AppMainV2 org.codehaus.classworlds.Launcher -Didea.version=2018.2.6 -s /Users/myhome/Documents/config/maven/apache-maven-3.6.0/conf/settings.xml -Dmaven.repo.local=/Users/myhome/Documents/config/maven/repo install
> 
> 
> 

Below is a sample error line

> 
> [ERROR]
>  /Users/myhome/Documents/WORKSPACES/something/SomeClass.java:[7,33]
>  cannot access org.springframework.kafka.support 
> 
> 
> [ERROR] zip END header not found
> 
> 
> 

Any tip to fix it ?
(Already updated SDKs in platform settings to OpenJdk11, Maven>Runner is using OpenJdk11, Java Compiler updated to 11.

[![MavenRunner[![][1]](https://i.stack.imgur.com/CEfZO.png)](https://i.stack.imgur.com/CEfZO.png)][2](https://i.stack.imgur.com/8qf8c.png)

[![Jdk](https://i.stack.imgur.com/ckdJb.png)](https://i.stack.imgur.com/ckdJb.png)