IDEA Maven tool window not showing all plugins goals

Answered

Does anyone know why the Maven tool window does not show all plugins goals in IDEA?
I have added the surefire maven plugin to my pom.xml and the plugin (ant it's goals) are shown.
When I added the tomcat7-maven-plugin however, the plugin is not shown in the tool window.
I have to run the goals either through command line, "Execute Maven Goal" or a Run configuration.

 

0
7 comments

Works here:

Make sure you can use it from command line. Re-import project in Maven tool window. If issue remains, file a bug with the sample project at https://youtrack.jetbrains.com/issues/IDEA

0
Avatar
Permanently deleted user

Command line usage is possible.

Just tried with a new empty project.

IDEA Ultimate 2019.1.3

I will file a bug.

 

0
Avatar
Permanently deleted user

I have the same issue. Reimport, reload project etc etc does not help, goal does not show up in maven tab. If i run the goal from from within terminal it works as expected.

e.g. using jetty plugin:

...
<build>
<finalName>wicket2</finalName>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>
...

It does not show up in maven tab.



1

@Thomas Kalsberger

Please share a sample project to the related YouTrack issue: https://youtrack.jetbrains.com/issue/IDEA-211118

 

0

Same issue here.  Added build plugin `spring-boot-maven-plugin` but it will not show up in the Plugin list.  Can't execute from within IntelliJ.

<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>spring-boot</classifier>
<mainClass>
com.abc.def.Main
</mainClass>
</configuration>
</execution>
</executions>
</plugin>
0

I found a solution in that I needed to move the plugin out of the <pluginManagement> block and into the basic <plugins> block.  The above link helped.

1

Please sign in to leave a comment.