| Author |
Local maven plugin repository
|
vijay choudhury
Greenhorn
Joined: Jul 05, 2006
Posts: 2
|
|
Hi I am using maven 2.4 .Every time i build my project, plugins get downloaded from http://repo1.maven.org/maven2.It seems,it is downloading the plugins but doesn't get saved in local repository.How do i configure to save plugins in my local system. Thanks,
|
 |
theo gough
Greenhorn
Joined: Aug 03, 2006
Posts: 2
|
|
hi, the chances are you're actually seeing 'failed' download attempts, because with M2 you need to configure the plugin registry for m2 in either your (master) pom or settings.xml: <pluginRepositories> <pluginRepository> <id>ibiblio</id> <url>http://www.ibiblio.org/maven2/plugins</url> <layout/> </pluginRepository> </pluginRepositories> should give access to all the latest M2 plugins...
|
 |
theo gough
Greenhorn
Joined: Aug 03, 2006
Posts: 2
|
|
add this to the <profiles> section in settings.xml in your maven-install-dir/conf directory: <profile> <activation> <activeByDefault>true</activeByDefault> </activation> <pluginRepositories> <pluginRepository> <id>ibiblio-base</id> <url>http://www.ibiblio.org/maven2/plugins</url> <layout/> </pluginRepository> <pluginRepository> <id>ibiblio-apache</id> <url>http://www.ibiblio.org/maven2/org/apache/maven/plugins</url> <layout/> </pluginRepository> </pluginRepositories> <id/> </profile> This adds both the roots for the repo's because there seem to be issues with the site plugin if one or the other is included and not both; seems there are still some issues between the two! cheers, theo
|
 |
 |
|
|
subject: Local maven plugin repository
|
|
|