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

Version 1 (Hiroya Kubo, 2010-01-04 17:07)

1 1 Hiroya Kubo
h1. How to Build and Deploy Patched Apache FOP
2 1 Hiroya Kubo
3 1 Hiroya Kubo
h2. About this document.
4 1 Hiroya Kubo
5 1 Hiroya Kubo
This document is for developers who want to make customized build of SQS applications from source code.
6 1 Hiroya Kubo
7 1 Hiroya Kubo
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 library.
8 1 Hiroya Kubo
9 1 Hiroya Kubo
Usually you can get the patched fop.jar file from SQS project maven repository (http://diaspora.prof.cuc.ac.jp/maven2/).
10 1 Hiroya Kubo
But if you want to modify the patch content, you must build your own fop.jar.
11 1 Hiroya Kubo
This document describes how to build your own fop.jar and deploy it into your local repository.
12 1 Hiroya Kubo
13 1 Hiroya Kubo
14 1 Hiroya Kubo
h2. How to build patched fop.jar and deploy it into your local repository
15 1 Hiroya Kubo
16 1 Hiroya Kubo
ex. ssh mvnrepo.example.com
17 1 Hiroya Kubo
18 1 Hiroya Kubo
<pre>
19 1 Hiroya Kubo
cd /tmp
20 1 Hiroya Kubo
svn co http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_95/
21 1 Hiroya Kubo
cd fop-0_95
22 1 Hiroya Kubo
wget http://diaspora.prof.cuc.ac.jp/svn/trunk/sqs-translator/src/main/resources/patch/fop-0_95.patch
23 1 Hiroya Kubo
patch -p0 < fop-0_95.patch
24 1 Hiroya Kubo
ant
25 1 Hiroya Kubo
mvn deploy:deploy-file -Durl=file:///var/www/maven2 -DrepositoryId=mvnrepo.example.com -Dfile=build/fop.jar -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=0.95-20090301 -Dpackaging=jar
26 1 Hiroya Kubo
</pre>