maven - Difference between 'plugin' section and 'dependency' section in pom. Which one to use when? -


while searching maven-check-style plugin information online found can added both <dependency> tag this:

<dependency>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-checkstyle-plugin</artifactid>     <version>2.5</version> </dependency> 

and under <plugins> tag this:

<reporting>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-checkstyle-plugin</artifactid>                 <configuration>                     <configlocation>config/sun_checks.xml</configlocation>                 </configuration>             </plugin>         </plugins> </reporting> 

i know difference between each , 1 use when. please guide.

as far know, plugins artifacts, can added dependency project. adding plugin artifact dependency, doesnt bind execution phase of maven build, therefore cannot executed.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -