forked from jboss-developer/jboss-eap-quickstarts
/
pom.xml
344 lines (311 loc) · 15.2 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<?xml version="1.0"?>
<!--
JBoss, Home of Professional Open Source
Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jboss.datagrid.quickstart</groupId>
<artifactId>jboss-as-carmart</artifactId>
<version>7.1.2-SNAPSHOT</version>
<packaging>war</packaging>
<name>CarMart Single Node (No Cluster)</name>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<properties>
<!-- Explicitly declaring the source encoding eliminates the following
message: -->
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent! -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- JBoss dependency versions -->
<com.ocpsoft.prettyfaces.version>3.3.2</com.ocpsoft.prettyfaces.version>
<org.jboss.weld.servlet.version>1.1.8.Final</org.jboss.weld.servlet.version>
<com.sun.faces.jsf.impl.version>2.0.2</com.sun.faces.jsf.impl.version>
<!-- This is the Management URL of EWS/Tomcat, so tomcat-maven-plugin
can deploy this quickstart on EWS/Tomcat through this URL -->
<tomcat.management.url>http://localhost:8080/manager/text</tomcat.management.url>
<!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->
<version.jboss.bom>1.0.6.Final</version.jboss.bom>
<!-- Alternatively, comment out the above line, and un-comment the
line below to use version 1.0.4.Final-redhat-3 which is a release certified
to work with JBoss EAP 6. It requires you have access to the JBoss EAP 6
maven repository. -->
<!-- <version.jboss.bom>1.0.6.Final-redhat-3</version.jboss.bom> -->
<!-- other plugin versions -->
<version.jboss.maven.plugin>7.3.Final</version.jboss.maven.plugin>
<version.tomcat.maven.plugin>1.1</version.tomcat.maven.plugin>
<version.buildhelper.maven.plugin>1.7</version.buildhelper.maven.plugin>
<!-- other plugin versions -->
<version.compiler.plugin>2.3.2</version.compiler.plugin>
<version.war.plugin>2.2</version.war.plugin>
<!-- maven-compiler-plugin -->
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>1.6</maven.compiler.source>
</properties>
<dependencyManagement>
<!-- JBoss distributes a complete set of Java EE 6 APIs including
a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or
a collection) of artifacts. We use this here so that we always get the correct
versions of artifacts. Here we use the jboss-javaee-6.0-with-infinispan stack
and the jboss-javaee-6.0-with-transactions stack (you can read this as the
JBoss stack of the Java EE 6 APIs, with Infinispan and Transactions) -->
<dependencies>
<dependency>
<groupId>org.jboss.bom</groupId>
<artifactId>jboss-javaee-6.0-with-infinispan</artifactId>
<version>${version.jboss.bom}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- First declare the APIs we depend on and need for compilation.
The dependencies with provided scope are provided by JBoss AS 7, The other
compile scoped dependencies will be add to the application libraries -->
<!-- Import the JSF API, we use provided scope as the API is included
in JBoss AS 7 -->
<dependency>
<groupId>org.jboss.spec.javax.faces</groupId>
<artifactId>jboss-jsf-api_2.1_spec</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the CDI API, we use provided scope as the API is included
in JBoss AS 7 -->
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the infinispan core -->
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<scope>compile</scope>
</dependency>
<!-- Import Prettyfaces dependency. This is a UNSUPPORTED component -->
<dependency>
<groupId>com.ocpsoft</groupId>
<artifactId>prettyfaces-jsf2</artifactId>
<version>${com.ocpsoft.prettyfaces.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<!-- Maven will append the version to the finalName (which is the
name given to the generated war, and hence the context root) -->
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- Compiler plugin enforces Java 1.6 compatibility and activates
annotation processors -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.compiler.plugin}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${version.war.plugin}</version>
<configuration>
<!-- Java EE 6 doesn't require web.xml, Maven needs to
catch up! -->
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- This is the default profile (active by default) that uses the
src/local/java folder which provided local access to the cache (library mode) -->
<profile>
<id>library-jbossas</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<!-- This plugin will add the src/local/java source
folder -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.buildhelper.maven.plugin}</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/local/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- The JBoss AS plugin deploys your war to a local
JBoss AS container -->
<!-- To use, run: mvn package jboss-as:deploy -->
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
</plugin>
</plugins>
</build>
</profile>
<!-- This profile enable the client/server mode. The code from src/remote/java
will be used instead and them all connections to the cache will be made in
a remote JDG running instance -->
<profile>
<id>remote</id>
<!-- To connect to remote JDG, it is necessary to add the Hot
Rod client -->
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- This plugin will add the src/remote/java source
folder -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.buildhelper.maven.plugin}</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/remote/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- The JBoss AS plugin deploys your war to a local
JBoss AS container -->
<!-- To use, run: mvn package jboss-as:deploy -->
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- This profile is intended to run this quickstart on ews/tomcat.
It has to embed some libraries that aren't available on ews/tomcat. -->
<id>library-tomcat</id>
<dependencies>
<!-- Import the JSF 2.1 API -->
<dependency>
<groupId>org.jboss.spec.javax.faces</groupId>
<artifactId>jboss-jsf-api_2.1_spec</artifactId>
<scope>compile</scope>
</dependency>
<!-- Import the WELD "uber-jar", meaning it bundles all the
bits of Weld and CDI required for running in a Servlet container, for your
convenience -->
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet</artifactId>
<version>${org.jboss.weld.servlet.version}</version>
</dependency>
<!-- Import the Mojarra JSF Impl, we use runtime scope as
the Impl is not included in ews/tomcat -->
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${com.sun.faces.jsf.impl.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- This plugin will add the src/tomcat/java source
folder -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.buildhelper.maven.plugin}</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/local/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- This plugin will add the src/main/webapp-tomcat7
as webapp folder -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${version.war.plugin}</version>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp-tomcat7</directory>
<filtering>false</filtering>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<!-- The Tomcat Maven plugin deploys your war to
a local ews/tomcat container -->
<!-- To use, run: mvn package tomcat:deploy -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>${version.tomcat.maven.plugin}</version>
<configuration>
<server>tomcat</server>
<path>/${project.artifactId}</path>
<url>${tomcat.management.url}</url>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>