commit | author | age
|
41d500
|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
RS |
2 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>entity-relationships-solution</artifactId> |
|
5 |
<packaging>war</packaging> |
|
6 |
<name>Configure Relationships web app Project</name> |
|
7 |
<description>This is the entity relationships project.</description> |
|
8 |
<parent> |
|
9 |
<groupId>com.redhat.training</groupId> |
|
10 |
<artifactId>parent-pom</artifactId> |
|
11 |
<version>1.0</version> |
|
12 |
<relativePath>../pom.xml</relativePath> |
|
13 |
</parent> |
|
14 |
|
|
15 |
<properties> |
|
16 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
17 |
</properties> |
|
18 |
|
|
19 |
<dependencies> |
|
20 |
|
|
21 |
<!-- First declare the APIs we depend on and need for compilation. All |
|
22 |
of them are provided by JBoss EAP --> |
|
23 |
|
|
24 |
<!-- Import the CDI API, we use provided scope as the API is included in |
|
25 |
JBoss EAP --> |
|
26 |
<dependency> |
|
27 |
<groupId>javax.enterprise</groupId> |
|
28 |
<artifactId>cdi-api</artifactId> |
|
29 |
<scope>provided</scope> |
|
30 |
</dependency> |
|
31 |
|
|
32 |
<!-- Import the EJB API, we use provided scope as the API is included in |
|
33 |
JBoss EAP --> |
|
34 |
<dependency> |
|
35 |
<groupId>org.jboss.spec.javax.ejb</groupId> |
|
36 |
<artifactId>jboss-ejb-api_3.2_spec</artifactId> |
|
37 |
<scope>provided</scope> |
|
38 |
</dependency> |
|
39 |
|
|
40 |
|
|
41 |
<!-- Import the JSF API, we use provided scope as the API is included in |
|
42 |
JBoss EAP --> |
|
43 |
<dependency> |
|
44 |
<groupId>org.jboss.spec.javax.faces</groupId> |
|
45 |
<artifactId>jboss-jsf-api_2.2_spec</artifactId> |
|
46 |
<scope>provided</scope> |
|
47 |
</dependency> |
|
48 |
|
|
49 |
<dependency> |
|
50 |
<groupId>org.hibernate.javax.persistence</groupId> |
|
51 |
<artifactId>hibernate-jpa-2.1-api</artifactId> |
|
52 |
<scope>provided</scope> |
|
53 |
</dependency> |
|
54 |
|
|
55 |
<dependency> |
|
56 |
<groupId>org.hibernate</groupId> |
|
57 |
<artifactId>hibernate-entitymanager</artifactId> |
|
58 |
<scope>provided</scope> |
|
59 |
</dependency> |
|
60 |
|
|
61 |
<!-- Annotation processor to generate the JPA metamodel classes for typesafe |
|
62 |
criteria queries --> |
|
63 |
<dependency> |
|
64 |
<groupId>org.hibernate</groupId> |
|
65 |
<artifactId>hibernate-jpamodelgen</artifactId> |
|
66 |
<scope>provided</scope> |
|
67 |
</dependency> |
|
68 |
|
|
69 |
|
|
70 |
<dependency> |
|
71 |
<groupId>junit</groupId> |
|
72 |
<artifactId>junit</artifactId> |
|
73 |
<scope>test</scope> |
|
74 |
</dependency> |
|
75 |
|
|
76 |
<dependency> |
|
77 |
<groupId>org.jboss.arquillian.junit</groupId> |
|
78 |
<artifactId>arquillian-junit-container</artifactId> |
|
79 |
<scope>test</scope> |
|
80 |
</dependency> |
|
81 |
|
|
82 |
<dependency> |
|
83 |
<groupId>org.jboss.arquillian.protocol</groupId> |
|
84 |
<artifactId>arquillian-protocol-servlet</artifactId> |
|
85 |
<scope>test</scope> |
|
86 |
</dependency> |
|
87 |
|
|
88 |
<!-- Need to explicitly reference this version, or else there will be an |
|
89 |
exception due to a bug in Arquilian --> |
|
90 |
<dependency> |
|
91 |
<groupId>org.wildfly.arquillian</groupId> |
|
92 |
<artifactId>wildfly-arquillian-common</artifactId> |
|
93 |
<version>2.0.0.Final</version> |
|
94 |
</dependency> |
|
95 |
|
|
96 |
</dependencies> |
|
97 |
|
|
98 |
<build> |
|
99 |
<finalName>entity-relationships</finalName> |
|
100 |
<plugins> |
|
101 |
<plugin> |
|
102 |
<artifactId>maven-war-plugin</artifactId> |
|
103 |
<version>${version.war.plugin}</version> |
|
104 |
<extensions>false</extensions> |
|
105 |
<configuration> |
|
106 |
<failOnMissingWebXml>false</failOnMissingWebXml> |
|
107 |
<archive> |
|
108 |
<manifestEntries> |
|
109 |
<Dependencies>com.google.guava,org.slf4j |
|
110 |
</Dependencies> |
|
111 |
</manifestEntries> |
|
112 |
</archive> |
|
113 |
</configuration> |
|
114 |
</plugin> |
|
115 |
</plugins> |
|
116 |
</build> |
|
117 |
|
|
118 |
<profiles> |
|
119 |
<profile> |
|
120 |
<!-- This profile skips all tests, though you can tune it to run just |
|
121 |
unit tests based on a custom pattern --> |
|
122 |
<!-- Separate profiles are provided for running all tests, including Arquillian |
|
123 |
tests that execute in the specified container --> |
|
124 |
<!-- Use this profile if you just want to build a WAR file without running |
|
125 |
any unit tests --> |
|
126 |
<!-- Run like this: mvn clean package -Pdefault --> |
|
127 |
<id>default</id> |
|
128 |
<build> |
|
129 |
<plugins> |
|
130 |
<plugin> |
|
131 |
<artifactId>maven-surefire-plugin</artifactId> |
|
132 |
<version>${version.surefire.plugin}</version> |
|
133 |
<configuration> |
|
134 |
<skip>true</skip> |
|
135 |
</configuration> |
|
136 |
</plugin> |
|
137 |
</plugins> |
|
138 |
</build> |
|
139 |
</profile> |
|
140 |
<profile> |
|
141 |
<!-- An optional Arquillian testing profile that executes tests in a remote |
|
142 |
JBoss EAP instance --> |
|
143 |
<!-- Run with: mvn clean test -Parq-wildfly-remote or, simply run: mvn |
|
144 |
test --> |
|
145 |
<!-- To make it easy to run tests from within JBDS, this profile is set |
|
146 |
as active by default --> |
|
147 |
<id>arq-wildfly-remote</id> |
|
148 |
<activation> |
|
149 |
<activeByDefault>true</activeByDefault> |
|
150 |
</activation> |
|
151 |
<dependencies> |
|
152 |
<dependency> |
|
153 |
<groupId>org.wildfly.arquillian</groupId> |
|
154 |
<artifactId>wildfly-arquillian-container-remote</artifactId> |
|
155 |
<scope>test</scope> |
|
156 |
</dependency> |
|
157 |
</dependencies> |
|
158 |
</profile> |
|
159 |
</profiles> |
|
160 |
|
|
161 |
</project> |