annotate website/build-maven.html @ 3:9a472dab7e09

more new documentation
author robcast
date Mon, 12 Dec 2011 20:37:53 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
4 <head>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
6 <title>digilib -- Digital Image Library</title>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
7 </head>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
8 <body>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
9
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
10 <table border="0" cellspacing="0" cellpadding="10">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
11 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
12 <td bgcolor="#a0a0a0">&nbsp;</td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
13 <td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
14 <img src="images/digilib-logo-big.png" align="left" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
15 <h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
16 <code>digilib</code> -- a versatile image viewing environment for the internet
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
17 </h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
18 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
19 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
20 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
21 <td bgcolor="#a0a0a0" valign="top" align="right">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
22 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
23 <b><a href="index.html">Info</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
24 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
25 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
26 <b><a href="http://developer.berlios.de/projects/digilib/">Project</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
27 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
28 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
29 <b><a href="http://developer.berlios.de/project/showfiles.php?group_id=251">Download</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
30 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
31 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
32 <b><a href="docs.html">Docs</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
33 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
34 <a href="build-maven.html">Building</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
35 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
36 <a href="digilib-config.html">Configuring</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
37 <br />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
38 <a href="http://developer.berlios.de/docman/?group_id=251">...more</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
39 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
40 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
41 <b><a href="tips.html">Tips</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
42 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
43 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
44 <b><a href="http://hg.berlios.de/repos/digilib">Source</a></b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
45 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
46 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
47 <td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
48
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
49 <h1>Building digilib with Maven</h1>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
50
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
51 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
52 The easiest way to get the latest and greatest digilib is the <a
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
53 href="http://maven.apache.org/">Maven</a> build tool. It will download,
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
54 compile, and install the latest digilib version and all required libraries.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
55 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
56
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
57 <h2>What you need</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
58 <ul>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
59 <li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
60 <a href="http://www.java.com/">Java</a> (1.5 or higher)
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
61 </li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
62 <li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
63 <a href="http://maven.apache.org/">Maven</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
64 </li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
65 <li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
66 <a href="http://mercurial.selenic.com/">Mercurial</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
67 </li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
68 <li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
69 The digilib project file <a
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
70 href="http://hg.berlios.de/repos/digilib/raw-file/tip/pom.xml">pom.xml</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
71 (download and save it)
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
72 </li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
73 <li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
74 A Servlet container like <a href="http://tomcat.apache.org/">Tomcat</a> or <a
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
75 href="http://www.eclipse.org/jetty/">Jetty</a> to run the web application.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
76 </li>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
77 </ul>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
78
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
79 <h2>Quick build</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
80
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
81 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
82 The fastest way to build the digilib web application is to run
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
83 <pre>mvn scm:bootstrap -N</pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
84 in the same directory as the <code>pom.xml</code> file you downloaded.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
85 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
86 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
87 This will create a web application directory <code>digilib-webapp-2.0-SNAPSHOT</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
88 and a WAR file <code>digilib-webapp-2.0-SNAPSHOT-srv2.war</code> (or similar) in
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
89 the subdirectory <code>target/checkout/webapp/target/</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
90 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
91 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
92 If you want to use the new-and-better Asynchronous Servlet API add <code>-Psrv3</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
93 to the Maven command line above. You will need Java version 6 and Tomcat version 7 or Jetty version
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
94 8 or later to use the asynchronous Servlet.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
95 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
96
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
97 <h2>Deploying the web application by hand</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
98
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
99 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
100 To deploy digilib just copy the web application directory into the <code>webapp</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
101 directory of the Servlet container.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
102 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
103
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
104 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
105 Since the URL of your digilib server starts with the name of the web application
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
106 and the name of the web application is derived from the name of the web
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
107 application directory <b>please rename the web application directory to <code>digitallibrary</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
108 before you start
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
109 </b>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
110 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
111 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
112 Then you should see your digilib running at the URL <a
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
113 href="http://localhost:8080/digitallibrary/jquery/digilib.html">http://localhost:8080/digitallibrary/jquery/digilib.html</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
114 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
115
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
116 <h2>Configuring digilib</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
117
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
118 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
119 To change the configuration of digilib just edit the file <code>digilib-config.xml</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
120 in the web application directory (<code>digitallibrary/WEB-INF/digilib-config.xml</code>).
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
121 Documentation of the configuration options is <a href="digilib-config.html">here</a>.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
122 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
123
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
124 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
125 You can see a summary of your running digilib configuration at the URL <a
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
126 href="http://localhost:8080/digitallibrary/server/dlConfig.jsp">http://localhost:8080/digitallibrary/server/dlConfig.jsp</a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
127 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
128
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
129
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
130 <h2>Developer build</h2>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
131
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
132 <p>If you are developing with digilib it is helpful to check out the source
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
133 code separately so you can keep it around, modify it or change the configuration
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
134 before you deploy.</p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
135 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
136 To check out the latest source code into the directory <code>digilib</code> run
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
137 <pre>mvn scm:checkout -N -DcheckoutDirectory=digilib</pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
138 in the same directory as the <code>pom.xml</code> file you downloaded.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
139 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
140 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
141 The digilib configuration files are now in <code>webapp/src/main/webapp/WEB-INF/</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
142 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
143 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
144 To build the resulting source code, change into the <code>digilib</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
145 directory you checked out above and run
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
146 <pre>mvn package</pre>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
147 This will create a web application directory <code>digilib-webapp-2.0-SNAPSHOT</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
148 and a WAR file <code>digilib-webapp-2.0-SNAPSHOT-srv2.war</code> (or similar) in
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
149 the subdirectory <code>webapp/target/</code> .
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
150 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
151 <p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
152 If you want to use the new-and-better Asynchronous Servlet API add <code>-Psrv3</code>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
153 to the Maven command line above. You will need Java version 6 and Tomcat version 7 or Jetty version
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
154 8 or later to use the asynchronous Servlet.
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
155 </p>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
156 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
157 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
158 <tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
159 <td style="padding: 0px" align="left">
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
160 <a href="http://developer.berlios.de"> <img
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
161 src="http://developer.berlios.de/bslogo.php?group_id=0&type=1" width="124"
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
162 height="32" border="0" alt="BerliOS Logo" />
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
163 </a>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
164 </td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
165 <td></td>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
166 </tr>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
167 </table>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
168
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
169 </body>
9a472dab7e09 more new documentation
robcast
parents:
diff changeset
170 </html>