I've used the wagon-plugin to create a maven repository in my GoogleCode svn-repository and wanted to configure another project to correctly access this repository, but I seem to completely miss the point, or maybe maven2 is?
Here's what I setup in my pom.xml for the project where I want to use the plugin:
<repositories>
<repository>
<id>jsdoctk1</id>
<url>
http://jsdoctk-plugin.googlecode.com/svn/repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jsdoctk2</id>
<url>
http://jsdoctk-plugin.googlecode.com/svn/repo</url>
</pluginRepository>
</pluginRepositories>
I had added the pluginRepositories after many a failed attempt to get the jar-file, even thought the pom for my jsdoctk-plugin was being downloaded, somehow, don't ask me what the specific setup was at that time. However, this configuration in maven 2.0.8 will simply state that the required files were not found, it even includes these mirrors in the places it supposedly went looking. So, I upgraded to 2.0.10, thinking that maybe my maven was too old. As a result it didn't even check my custom repositories anymore, so I started muddling around again and in the end added these mirrors to my settings.xml:
<mirror>
<id>jsdoctkmirror</id>
<mirrorOf>jsdoctk1</mirror
Of>
<name>jsdoctk Maven Repository</name>
<url>
http://jsdoctk-plugin.googlecode.com/svn/repo</url>
</mirror>
<mirror>
<id>jsdoctkmirror2</id>
<mirrorOf>jsdoctk2</mirror
Of>
<name>jsdoctk Maven Repository</name>
<url>
http://jsdoctk-plugin.googlecode.com/svn/repo</url>
</mirror>
This will make it work, in both 2.0.8 as well as 2.0.10, but I'm left thinking, did I do something wrong? It should be easier than this, right?
The reason I want to know for sure that this is the only way to do it, is because I want to setup a howto on my GoogleCode project to make easy for other developers to start using my plugin without manualy installing it to their local repo... Hope somebody here knows more about repo's in maven2...