Inherit from MavenProjectModelModifier

Answered

Hello!

I need to write a custom implementation of selectVersion method of MavenProjectModelModifier (with a custom implementation of calling public method, of course). 

I manage to inherit from IdeaProjectModelModifier, AndroidGradleJavaProjectModelModifier, but for Maven it seems to be impossible because org.jetbrains.idea.maven package has not very much accessible classes. How can I do it?

1 comment
Comment actions Permalink

What exactly classes you want to access? Maven classes are public and accessible, as well as any other files in other plugins.

Have you declared maven plugin as a dependency? You can read more about declaring dependencies to plugins here
https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#0

Make sure your plugin depends on org.jetbrains.idea.maven.  Also, "org.jetbrains.idea.maven.model" and "org.jetbrains.idea.maven.server.api" may also be useful.

0

Please sign in to leave a comment.