This is a sample of how to write and build extensions for SGDK's rescomp tool with Maven. For more information see my blog post.
This is not a complete SGDK project, but is instead intended to act as an example of the minimal file changes needed to add a rescomp_ext.jar to your own project.
Java, Maven, SGDK 2.10 or above1, and an SGDK project you're working on.
mvn install:install-file -Dfile=%GDK%/bin/rescomp.jar -DgroupId=sgdk -DartifactId=rescomp -Dversion=3.95 -Dpackaging=jar -DgeneratePom=true
cd res/rescomp_ext
mvn clean install
cd ../..
java -jar %GDK%/bin/rescomp.jar res/resources.res res/resources.s
where %GDK% is the path to your SGDK install.
Footnotes
-
Older versions of rescomp had an issue loading some classes in the extension jar. ↩