Maven terms -- dependency and plugin, repository vs. pluginRepository

Viewed 40408

I've been working with Maven for days but still get confused about some of the terms:

First question is what is the difference between repository and pluginRepository? If there is functional difference so shall I put one url for both?

Second question is what is the difference between dependency and plugin? Maybe they are totally different item to compare because plugin can include dependencies, but to me plugins look like some kind of dependencies in a build? Just like "This build depends on these plugins, and one of this plugin depends on that dependencies", I always think dependencies are kind of library jars, and plugins are library jars or depending projects in jars...

Sorry if the question is kind of dumb, but I am really confused. Please give a hint, thanks.

1 Answers
Related