-
Notifications
You must be signed in to change notification settings - Fork 20
Compiling
Compiling Sone is currently a bit tricky.
- Maven.
- The utils package.
- The utils.json package.
- A checkout of fred.
Installing the utils package is straight-forward. Use mvn install
to compile and install the compiled 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.)
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.
mvn install:install-file -Dfile=lib/freenet-ext.jar -DgroupId=org.freenetproject -DartifactId=freenet-ext -Dversion=26 -Dpackaging=jar -DgeneratePom=true
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.