1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 |
<modelVersion>4.0.0</modelVersion> |
3 |
|
4 |
<parent> |
5 |
<groupId>org.onehippo.ecm</groupId> |
6 |
<artifactId>hst_docs</artifactId> |
7 |
<version>1.01.00-SNAPSHOT</version> |
8 |
<relativePath>../pom.xml</relativePath> |
9 |
</parent> |
10 |
|
11 |
<name>My Hippo Site Toolkit Project website</name> |
12 |
<description>My Hippo Site Toolkit Project website</description> |
13 |
<artifactId>hst_docs-site</artifactId> |
14 |
<groupId>org.onehippo.ecm</groupId> |
15 |
<packaging>war</packaging> |
16 |
|
17 |
|
18 |
<!-- |
19 |
TODO Waarom geen dependency on content project, die gebruikt hij! |
20 |
--> |
21 |
|
22 |
<dependencies> |
23 |
<!-- Dependencies needed to be able to send mail --> |
24 |
<dependency> |
25 |
<groupId>javax.mail</groupId> |
26 |
<artifactId>mail</artifactId> |
27 |
<version>1.4</version> |
28 |
<scope>provided</scope> |
29 |
</dependency> |
30 |
<dependency> |
31 |
<groupId>javax.activation</groupId> |
32 |
<artifactId>activation</artifactId> |
33 |
<version>1.1</version> |
34 |
<scope>provided</scope> |
35 |
</dependency> |
36 |
<dependency> |
37 |
<groupId>javax.servlet</groupId> |
38 |
<artifactId>servlet-api</artifactId> |
39 |
<scope>provided</scope> |
40 |
<version>${servlet-api.version}</version> |
41 |
</dependency> |
42 |
<dependency> |
43 |
<groupId>javax.servlet</groupId> |
44 |
<artifactId>jstl</artifactId> |
45 |
<scope>runtime</scope> |
46 |
<version>${jstl.version}</version> |
47 |
</dependency> |
48 |
<dependency> |
49 |
<groupId>taglibs</groupId> |
50 |
<artifactId>standard</artifactId> |
51 |
<scope>runtime</scope> |
52 |
<version>${taglibs.version}</version> |
53 |
</dependency> |
54 |
<!-- |
55 |
<dependency> |
56 |
<groupId>org.onehippo.forge.simpleEmail</groupId> |
57 |
<artifactId>SimpleEmail</artifactId> |
58 |
<version>0.0.1-SNAPSHOT</version> |
59 |
</dependency> |
60 |
--> |
61 |
<dependency> |
62 |
<groupId>xml-apis</groupId> |
63 |
<artifactId>xml-apis</artifactId> |
64 |
<version>${xml-apis.version}</version> |
65 |
</dependency> |
66 |
<dependency> |
67 |
<groupId>xerces</groupId> |
68 |
<artifactId>xercesImpl</artifactId> |
69 |
<version>${xerces.version}</version> |
70 |
</dependency> |
71 |
<dependency> |
72 |
<groupId>xerces</groupId> |
73 |
<artifactId>xerces</artifactId> |
74 |
<version>${xerces.version}</version> |
75 |
</dependency> |
76 |
<dependency> |
77 |
<groupId>xalan</groupId> |
78 |
<artifactId>xalan</artifactId> |
79 |
<version>${xalan.version}</version> |
80 |
</dependency> |
81 |
<dependency> |
82 |
<groupId>org.slf4j</groupId> |
83 |
<artifactId>slf4j-api</artifactId> |
84 |
<version>1.4.3</version> |
85 |
</dependency> |
86 |
<dependency> |
87 |
<groupId>org.slf4j</groupId> |
88 |
<artifactId>slf4j-log4j12</artifactId> |
89 |
<version>1.4.3</version> |
90 |
<scope>runtime</scope> |
91 |
</dependency> |
92 |
<dependency> |
93 |
<groupId>log4j</groupId> |
94 |
<artifactId>log4j</artifactId> |
95 |
<version>1.2.13</version> |
96 |
<scope>runtime</scope> |
97 |
</dependency> |
98 |
<dependency> |
99 |
<groupId>org.springframework</groupId> |
100 |
<artifactId>spring-core</artifactId> |
101 |
<version>${spring.version}</version> |
102 |
</dependency> |
103 |
<dependency> |
104 |
<groupId>org.springframework</groupId> |
105 |
<artifactId>spring-web</artifactId> |
106 |
<version>${spring.version}</version> |
107 |
</dependency> |
108 |
<dependency> |
109 |
<groupId>org.onehippo.ecm.hst</groupId> |
110 |
<artifactId>hst-api</artifactId> |
111 |
<version>${hst.version}</version> |
112 |
<!-- |
113 |
<scope>provided</scope> |
114 |
--> |
115 |
</dependency> |
116 |
<dependency> |
117 |
<groupId>org.onehippo.ecm.hst</groupId> |
118 |
<artifactId>hst-commons</artifactId> |
119 |
<version>${hst.version}</version> |
120 |
<!-- |
121 |
<scope>provided</scope> |
122 |
--> |
123 |
</dependency> |
124 |
<dependency> |
125 |
<groupId>org.onehippo.ecm.hst.components</groupId> |
126 |
<artifactId>hst-core</artifactId> |
127 |
<version>${hst.version}</version> |
128 |
</dependency> |
129 |
<dependency> |
130 |
<groupId>org.onehippo.ecm.hst</groupId> |
131 |
<artifactId>hst-client</artifactId> |
132 |
<version>${hst.version}</version> |
133 |
</dependency> |
134 |
|
135 |
<dependency> |
136 |
<groupId>org.onehippo.ecm.hst</groupId> |
137 |
<artifactId>hst-ocm</artifactId> |
138 |
<version>${hst.version}</version> |
139 |
</dependency> |
140 |
|
141 |
<dependency> |
142 |
<groupId>org.onehippo.ecm.hst</groupId> |
143 |
<artifactId>hst-content-beans</artifactId> |
144 |
<version>${hst.version}</version> |
145 |
</dependency> |
146 |
|
147 |
<dependency> |
148 |
<groupId>commons-lang</groupId> |
149 |
<artifactId>commons-lang</artifactId> |
150 |
<version>2.4</version> |
151 |
</dependency> |
152 |
|
153 |
<dependency> |
154 |
<groupId>org.apache.geronimo.specs</groupId> |
155 |
<artifactId>geronimo-jta_1.1_spec</artifactId> |
156 |
<scope>provided</scope> |
157 |
<version>1.1</version> |
158 |
</dependency> |
159 |
|
160 |
</dependencies> |
161 |
|
162 |
|
163 |
|
164 |
<build> |
165 |
<defaultGoal>package</defaultGoal> |
166 |
<plugins> |
167 |
<plugin> |
168 |
<groupId>org.mortbay.jetty</groupId> |
169 |
<artifactId>maven-jetty-plugin</artifactId> |
170 |
<version>6.1.10</version> |
171 |
<configuration> |
172 |
<scanIntervalSeconds>5</scanIntervalSeconds> |
173 |
<webAppConfig> |
174 |
<contextPath>/site</contextPath> |
175 |
<tempDirectory>${project.build.directory}/work</tempDirectory> |
176 |
</webAppConfig> |
177 |
<connectors> |
178 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
179 |
<port>8085</port> |
180 |
</connector> |
181 |
</connectors> |
182 |
</configuration> |
183 |
<dependencies> |
184 |
<!-- atomikos dependecies for running jetty:run[-war|-exploded] --> |
185 |
<dependency> |
186 |
<groupId>com.atomikos</groupId> |
187 |
<artifactId>transactions-api</artifactId> |
188 |
<version>3.1.4</version> |
189 |
<scope>runtime</scope> |
190 |
</dependency> |
191 |
<dependency> |
192 |
<groupId>com.atomikos</groupId> |
193 |
<artifactId>transactions-jta</artifactId> |
194 |
<version>3.1.4</version> |
195 |
<scope>runtime</scope> |
196 |
</dependency> |
197 |
<dependency> |
198 |
<groupId>com.atomikos</groupId> |
199 |
<artifactId>transactions</artifactId> |
200 |
<version>3.1.4</version> |
201 |
<scope>runtime</scope> |
202 |
</dependency> |
203 |
<dependency> |
204 |
<groupId>com.atomikos</groupId> |
205 |
<artifactId>atomikos-util</artifactId> |
206 |
<version>3.1.4</version> |
207 |
<scope>runtime</scope> |
208 |
</dependency> |
209 |
</dependencies> |
210 |
</plugin> |
211 |
<plugin> |
212 |
<inherited>true</inherited> |
213 |
<artifactId>maven-compiler-plugin</artifactId> |
214 |
<configuration> |
215 |
<target>1.5</target> |
216 |
<source>1.5</source> |
217 |
</configuration> |
218 |
</plugin> |
219 |
<plugin> |
220 |
<artifactId>maven-eclipse-plugin</artifactId> |
221 |
<configuration> |
222 |
<downloadSources>true</downloadSources> |
223 |
<wtpversion>1.5</wtpversion> |
224 |
</configuration> |
225 |
</plugin> |
226 |
</plugins> |
227 |
</build> |
228 |
|
229 |
<profiles> |
230 |
|
231 |
<profile> |
232 |
<id>tomcat</id> |
233 |
<build> |
234 |
<plugins> |
235 |
<plugin> |
236 |
<groupId>org.codehaus.mojo</groupId> |
237 |
<artifactId>properties-maven-plugin</artifactId> |
238 |
<version>1.0-alpha-1</version> |
239 |
<executions> |
240 |
<execution> |
241 |
<phase>initialize</phase> |
242 |
<goals> |
243 |
<goal>read-project-properties</goal> |
244 |
</goals> |
245 |
<configuration> |
246 |
<quiet>true</quiet> |
247 |
<files> |
248 |
<file>build.properties</file> |
249 |
</files> |
250 |
</configuration> |
251 |
</execution> |
252 |
</executions> |
253 |
</plugin> |
254 |
<plugin> |
255 |
<groupId>org.apache.maven.plugins</groupId> |
256 |
<artifactId>maven-antrun-plugin</artifactId> |
257 |
<version>1.2</version> |
258 |
<executions> |
259 |
<execution> |
260 |
<id>deploy-to-tomcat</id> |
261 |
<phase>install</phase> |
262 |
<configuration> |
263 |
<tasks> |
264 |
|
265 |
<echo>Replacing HST Shared Libraries.</echo> |
266 |
<copy file="${settings.localRepository}/javax/jcr/jcr/1.0/jcr-1.0.jar" tofile="${tomcat.hst.shared.lib}/jcr-1.0.jar" /> |
267 |
<copy file="${settings.localRepository}/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar" tofile="${tomcat.hst.shared.lib}/geronimo-jta_1.1_spec-1.1.jar" /> |
268 |
<copy file="../../api/target/hst-api-${project.version}.jar" tofile="${tomcat.hst.shared.lib}/hst-api-${project.version}.jar" /> |
269 |
<copy file="../../commons/target/hst-commons-${project.version}.jar" tofile="${tomcat.hst.shared.lib}/hst-commons-${project.version}.jar" /> |
270 |
|
271 |
<echo>Replacing cms web application into tomcat.</echo> |
272 |
<delete dir="${tomcat.hst.cms.webapp}" /> |
273 |
<mkdir dir="${tomcat.hst.cms.webapp}" /> |
274 |
<unwar src="../../maven/archetype/target/gettingstarted/cms/target/gettingstarted-cms-1.00.01.war" dest="${tomcat.hst.cms.webapp}" /> |
275 |
|
276 |
<echo>Replacing site web application into tomcat.</echo> |
277 |
<delete dir="${tomcat.server.home}/webapps/${project.artifactId}" /> |
278 |
<mkdir dir="${tomcat.server.home}/webapps/${project.artifactId}" /> |
279 |
<unwar src="${project.build.directory}/${project.artifactId}-${project.version}.war" dest="${tomcat.server.home}/webapps/${project.artifactId}" /> |
280 |
<delete> |
281 |
<fileset dir="${tomcat.server.home}/webapps/${project.artifactId}/WEB-INF/lib"> |
282 |
<include name="jcr-*.jar" /> |
283 |
<include name="hst-api-*.jar" /> |
284 |
<include name="hst-commons-*.jar" /> |
285 |
</fileset> |
286 |
</delete> |
287 |
|
288 |
</tasks> |
289 |
</configuration> |
290 |
<goals> |
291 |
<goal>run</goal> |
292 |
</goals> |
293 |
</execution> |
294 |
</executions> |
295 |
<dependencies> |
296 |
<dependency> |
297 |
<groupId>javax.jcr</groupId> |
298 |
<artifactId>jcr</artifactId> |
299 |
<version>1.0</version> |
300 |
</dependency> |
301 |
<dependency> |
302 |
<groupId>org.apache.geronimo.specs</groupId> |
303 |
<artifactId>geronimo-jta_1.1_spec</artifactId> |
304 |
<version>1.1</version> |
305 |
</dependency> |
306 |
</dependencies> |
307 |
</plugin> |
308 |
</plugins> |
309 |
</build> |
310 |
</profile> |
311 |
</profiles> |
312 |
</project> |