Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between repository and pluginrepository

Tags:

maven

My Android Maven project pom.xml contains the following entries. Now everything works fine. What is the difference between <repositories> entries and the <pluginRepositories> entries.

<repositories>         <repository>             <id>my-repo</id>             <url>http://10.10.10.230:8081/nexus/content/groups/public</url>             <releases>                 <enabled>true</enabled>             </releases>             <snapshots>                 <enabled>true</enabled>                 <updatePolicy>always</updatePolicy>             </snapshots>         </repository>     </repositories>     <pluginRepositories>         <pluginRepository>             <id>my-repo</id>             <name>my-repo</name>             <url>http://10.10.10.230:8081/nexus/content/groups/public/</url>             <releases>                 <enabled>true</enabled>             </releases>             <snapshots>                 <enabled>true</enabled>             </snapshots>         </pluginRepository>     </pluginRepositories> 
like image 748
AndroidDev Avatar asked Jan 18 '13 09:01

AndroidDev


People also ask

What is the difference between repository and Pluginrepository in Maven?

As @otakun85 stated, There is no technical difference at all. It's for having different configurations->behavior for plugins in contrary to normal artifacts.

What is dependency and repository?

Repository is a collection of artifacts (eg: jars). You can think of it as a mere storage / cache of various artifacts. Dependency is a situation where your project dependent on another artifact to perform its task (eg: compile, run, unit test)

What are the types of repository?

There are exactly two types of repositories: local and remote: the local repository is a directory on the computer where Maven runs. It caches remote downloads and contains temporary build artifacts that you have not yet released.

What is maven2 repository?

In Maven terminology, a repository is a directory where all the project jars, library jar, plugins or any other project specific artifacts are stored and can be used by Maven easily.


1 Answers

As @otakun85 stated, There is no technical difference at all. It's for having different configurations->behavior for plugins in contrary to normal artifacts. See repository vs. pluginRepository for more details.

Also check maven-users mailing list archives, It provides quite good explanation to it.

like image 161
Sahil Mahajan Mj Avatar answered Sep 22 '22 11:09

Sahil Mahajan Mj