Unable to resolve org.jetbrains.idea.maven.model.MavenId

Answered

Hi I'm updating my plugin from 2019.3 to 2002.2 and it started failing with 

 

/Users/mdeachaval/labs/mulesoft-labs/data-weave-intellij-plugin/data-weave-plugin/src/main/java/org/mule/tooling/lang/dw/wizard/WeaveModuleBuilder.java:14: error: cannot find symbol
import org.jetbrains.idea.maven.model.MavenId;

 

Looks like it was moved to maven.model in this commit

https://github.com/JetBrains/intellij-community/commit/6fc37805ec979fb3a8cf75476ba32a698b7ee5a0

 

So I tried adding "intellij.maven.model" to the list of plugins but it didn't work

 

sourceSets {
main {
java {
srcDir 'src/main/gen'
}
}
}

dependencies {
compile group: 'com.atlassian.commonmark', name: 'commonmark', version: '0.14.0'
compile group: 'com.atlassian.commonmark', name: 'commonmark-ext-gfm-tables', version: '0.14.0'

compile(group: 'org.mule.weave', name: 'debugger', version: weaveVersion)
compile(group: 'org.mule.weave', name: 'raml-module', version: "1.0.0-SNAPSHOT")
compile(group: 'org.mule.weave', name: 'parser', version: weaveVersion)
compile(group: 'org.mule.weave', name: 'migrant', version: migrantVersion)
}


intellij {
pluginName = 'data-weave-plugin-v2'
plugins = ['maven', 'properties', 'java', "intellij.maven.model"]
updateSinceUntilBuild = false
}
1 comment
Comment actions Permalink

"intellij.maven.model" is the name of a JPS module.
To specify plugin dependency, you need to use "plugin id", that is defined in plugin.xml nearby.
Using "org.jetbrains.idea.maven.model" or "org.jetbrains.idea.maven" should help.

0

Please sign in to leave a comment.