The UrBlog

John's Ramblings about Software Development

Hosting a Maven Internal Repository on a File Share

I spent some time today setting up an internal repository for my Maven build. I wanted to host just the artifacts that are used by my projects and not allow the project build to go outside of that repository. I first setup my repositories like this:

    <name>My Company's Internal Repository</name>

The idea behind this setup is that I overrode the “central” repository and pointed it to my internal repository. This way Maven would not try to go out to if it did not find something.

And it did not work. After much research and trying many things, it turns out my URL needs to look like this:


Hope this helps someone in the future trying to setup a repository on a share.