If I declared a plugin under <pluginManagement>
element and I also want to use it in the same POM, my understanding is that I have to declare it under <plugins>
element just under <build>
element, according to explanations in https://maven.apache.org/pom.html#Plugin_Management and
What is pluginManagement in Maven's pom.xml?.
But I found I don't need to declare it under <plugins>
element just under <build>
element to use that plugin when execute mvn tomcat7:run
in spring-security-oauth sample project. The plugin is tomcat7-maven-plugin.
So I'm curious why it works without declaring it here.