Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven plugins stored where

Where are maven plugins stored? in the local repository as well? what happens if you build your application with eclipse? does it store the plugins inside the eclipse/plugins folder or still in the local repository?

like image 618
ant Avatar asked Feb 26 '10 14:02

ant


People also ask

How do I access Maven plugins?

In Maven, you can use mvn help:effective-pom to list all the current project's plugins and its version.

Where do plugins go in POM xml?

Build plugins They execute during the build process and should be configured in the <build/> element of pom. xml.

What is Maven resources plugin?

The Resources Plugin handles the copying of project resources to the output directory. There are two different kinds of resources: main resources and test resources.


1 Answers

Where are maven plugins stored? in the local repository as well?

Yes. Plugins are downloaded from a remote repository and stored in the local repository. The exact final location will thus depend on the groupId of the plugins (the core plugins end up in ~/.m2/repository/org/apache/maven/plugins where ~/ stands for your home directory for example in windows server 2016 it is stored under this path C:\Users\YourUserName\.m2)

what happens if you build your application with eclipse?

Hmm... Nothing special.

Does it store the plugins inside the eclipse/plugins folder or still in the local repository?

No, Maven (embedded or external) uses the location defined in the <localRepository> element of the global or user settings (which defaults to ~/.m2/repository), unless you overrode the Local Repository path in Window > Preferences > Maven > User Settings.

like image 169
Pascal Thivent Avatar answered Oct 09 '22 13:10

Pascal Thivent