Project

General

Profile

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 (http://sqs-xml.sourceforge.net/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 your_maven_repository.example.com

cd /tmp
svn co http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-1_0/
cd fop-1_0
wget http://sqs-xml.hg.sourceforge.net/hgweb/sqs-xml/sqs-translator/raw-file/d9f95d5efd0c/fop_1.0-sqs.patch
patch -p0 < fop-1_0-sqs.patch
ant
mvn deploy:deploy-file -Durl=file:///var/www/maven/repository -DrepositoryId=your_maven_repository.example.com -Dfile=build/fop.jar -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-sqs -Dpackaging=jar
cd /tmp
svn co http://svn.apache.org/repos/asf/xmlgraphics/commons/tags/commons-1_4/
cd commons-1_4
wget http://sqs-xml.hg.sourceforge.net/hgweb/sqs-xml/sqs-translator/raw-file/d9f95d5efd0c/org.apache.xmlgraphics.xmlgraphics-commons-1.4.patch
patch -p0 < org.apache.xmlgraphics.xmlgraphics-commons-1.4.patch
ant
mvn deploy:deploy-file -Durl=file:///var/www/maven/repository -DrepositoryId=your_maven_repository.example.com -Dfile=build/xmlgraphics-commons-1.4-sqs.jar -DgroupId=org.apache.xmlgraphics -DartifactId=xmlgraphics-commons -Dversion=1.4-sqs -Dpackaging=jar