Moxie is a caching maven proxy which is written on top of Netty and is pretty light-weight. I mainly wrote this because sonatype nexus and apache archiva did not work on my NAS to well and I was in need for some more light-weight solution.
The code itself is written in Scala and uses Netty for the network code itself. Hope you find it useful.
How to use it
First compile it
# mvn clean compile assembly:single
Then copy the moxie.properties to your prefered directory and adjust if needed. After this start the proxy via:
# java -Dmoxie.config=/path/to/config/moxie.properties -jar moxie-1.0-SNAPSHOT-jar-with-dependencies.jar
Now configure maven to make use of it by add this settings to your ~/.m2/settings.xml
<mirrors>
<mirror>
<id>moxie</id>
<mirrorOf>*</mirrorOf>
<url>http://addressOfProxy:portOfProxy</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>moxie</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>moxie</activeProfile>
</activeProfiles>
Enjoy!