Inherit from MavenProjectModelModifier



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

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.


Please sign in to leave a comment.