How to Build and Deploy Patched Apache FOP and XML Graphics Commons

About this document.

This document is for developers who want to make customized build of SQS applications from source code.

SQS SourceEditor generates OMR Form PDF files which contains SVG Print files as an OMR Form metadata, through using a specially patched version of Apache FOP and XML Graphics Commons libraries.

Usually you can get the patched fop.jar file from SQS project maven repository (
But if you want to modify the patch content, you must build your own jars of fop and xmlgraphics-commons.
This document describes how to build your own jars and deploy it into your local repository.

How to build patched jars and deploy it into your local repository

ex. ssh

cd /tmp
svn co
cd fop-1_0
patch -p0 < fop-1_0-sqs.patch
mvn deploy:deploy-file -Durl=file:///var/www/maven/repository -Dfile=build/fop.jar -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-sqs -Dpackaging=jar
cd /tmp
svn co
cd commons-1_4
patch -p0 < org.apache.xmlgraphics.xmlgraphics-commons-1.4.patch
mvn deploy:deploy-file -Durl=file:///var/www/maven/repository -Dfile=build/xmlgraphics-commons-1.4-sqs.jar -DgroupId=org.apache.xmlgraphics -DartifactId=xmlgraphics-commons -Dversion=1.4-sqs -Dpackaging=jar

Updated by Hiroya Kubo over 10 years ago · 2 revisions