mavenrepositorynexusmaven-indexer

How to index a Maven repo without Nexus/Artifactory/etc?


I run my own little Maven repo for some open source. I have no dedicated server so I use a Google code repository, deploy to file system and then commit and push. Works perfect for me.

But some Maven tools are looking for a nexus-maven-repository-index.properties and the index (in GZ). I would like to generate this index to

  1. get rid of the warning that it's not here
  2. Maven doesn't try the repo for artefacts that are not there.

How can I do that? Is there a tool (Java main) that is able to generate an index? Also tips how to use the proper Nexus Jars with a little commandline tool are welcome.


Solution

  • You can use the Maven Indexer CLI to product the index directly, but why bother hosting your own repo when OSS projects can use a hosted one for free?

    http://nexus.sonatype.org/oss-repository-hosting.html