How can I get what goals was selected in the Maven plugin tree?

How can I get the names of the selected goals (and names of the projects of course) in the maven plugin? I want to run them in external build system from my plugin

3 comments

AnActionEvent.getData(MavenDataKeys.MAVEN_GOALS)

0

I cannot find the MavenDataKeys class, is it in the maven-ext.jar?

0

No, it's org.jetbrains.idea.maven.utils.MavenDataKeys in maven.jar.

0

Please sign in to leave a comment.