Build and run IntelliJ with maven

Answered

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(MavenServerConnector.java:163)
at org.jetbrains.idea.maven.server.MavenServerConnector.<init>(MavenServerConnector.java:64)

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

1 comment
Comment actions Permalink

Hello,

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

1

Please sign in to leave a comment.