How to add maven plugin in intellij-idea? I want to fast generate something like this:
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version>
<configuration>
<stopKey>STOP</stopKey>
<stopPort>8089</stopPort>
</configuration>
</plugin>
</plugins>
</build>
There are also tricks for having the POM automatically updated as you change project preferences, but I don't think they are as versatile or powerful. Using your example, IDEA is able to configure the IDE when it sees the JUnit plugin reference, but has a harder time generating the plugin reference after configuring unit tests in the IDE.
In general, the power of Maven in the IDE is it provides a declarative (non-procedural) means to have a wide variety of IDEs configured automatically. The Maven POM forms the conduit between the IDEs in that manner.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With