Skip to content
Bombe edited this page Jul 12, 2011 · 14 revisions

Compiling Sone is currently a bit tricky.

Things that you need:

Install the utils package

Installing the utils package is straight-forward. Use mvn install to compile and install the compiled package.

Installing the utils.json package.

See description for the utils package above. You might have to use the “next” branch and change the version number in pom.xml to whatever Sone is expecting. (Yes, the version numbering needs to be fixed, and it will.)

Install a package of fred

Compile fred normally, then use Maven to install the file in a Maven-conform location that Sone can use.

git checkout build01336
ant clean dist
mvn install:install-file -Dfile=dist/freenet.jar -DgroupId=org.freenetproject -DartifactId=fred -Dversion=0.7.5.1336 -Dpackaging=jar -DgeneratePom=true

Remember to substitute the correct version numbers of your fred checkout! The required version number is contained in Sone’s pom.xml file.

Install freenet-ext

mvn install:install-file -Dfile=lib/freenet-ext.jar -DgroupId=org.freenetproject -DartifactId=freenet-ext -Dversion=26 -Dpackaging=jar -DgeneratePom=true

Install Sone

Now, compiling Maven is trivial:

mvn clean package

Now you have a JAR file with all dependencies in the target directory. Feed that file to fred’s plugin manager, and you’re done.

Clone this wiki locally