aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Local maven plugin repository Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Local maven plugin repository" Watch "Local maven plugin repository" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local maven plugin repository
 
Similar Threads
Maven settings: Need an explaination for Beginer MVN User.
new to maven, error in mvn war:war
Maven newbie - installing jars
jsp tag library
Transitive Dependency Problem