Build and run IntelliJ with maven


I am able to build and run IntelliJ from source, however on opening a maven project there is an exception below.


I guess is it because "plugins/maven/maven36-server-impl' is not built. However, building the module doesn't create that "lib" folder.


On the other hand, putting hardcoded external Maven path to be returned in `MavenGeneralSettings.getMavenHome()`, there is an exception: NoClassDefFoundError: org/sonatype/nexus/index/ArtifactScanningListener


So, how would one be able to Build IntelliJ and run it with maven plugin?


2020-10-26 12:02:42,169 [ 12963] WARN - #org.jetbrains.idea.maven - Cannot resolve maven version for C:\use\intellij-community\plugins\maven\maven36-server-impl\lib\maven3
2020-10-26 12:02:42,260 [ 13054] WARN - #org.jetbrains.idea.maven - com.intellij.execution.ExecutionException
org.jetbrains.idea.maven.server.CannotStartServerException: com.intellij.execution.ExecutionException
at org.jetbrains.idea.maven.server.MavenServerConnector.connect(
at org.jetbrains.idea.maven.server.MavenServerConnector.<init>(

Caused by: java.lang.AssertionError
at org.jetbrains.idea.maven.server.MavenServerCMDState.createJavaParameters(
at org.jetbrains.idea.maven.server.MavenServerCMDState.startProcess(
at org.jetbrains.idea.maven.server.MavenServerCMDState.execute(

1 comment
Comment actions Permalink


Please see IDEA-248634 for details on the problem and a workaround.


Please sign in to leave a comment.