I am a bit confused. Why do you want to build Robocode after all. Is it being distributed with Debian?
You could download the robocode-1.7.1.4-setup.jar file, which includes everything needed to run Robocode, as long as Java 5.0 is installed. There is no need to compile it, unless you are a developer that wants to play with the sources or make a contribution for Robocode. Using Maven2, it is a bit hard to avoid downloading .jar files. It is a part of the concept of Maven2. Could you explain what needs to be changed in order not to brake the Debian policies. The mentioned problem with "mvn.sh" is that some of the .sh and .bat files are wrapper scripts. We could change that, if this is the problem? I don't expect Robocode to be the only project out there using Maven. So this might be a general issue with using Maven in Debian? Regards, - Flemming N. Larsen, administrator and developer of Robocode (http://robocode.sourceforge.net)