Ravi Srinivasan
2018-09-11 b9209f6413cb6985c0089f9677f4db9b52ca1395
commit | author | age
b9209f 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/xsd/maven-4.0.0.xsd">
RS 2   <modelVersion>4.0.0</modelVersion>
3   <artifactId>hello-rest</artifactId>
4   <packaging>war</packaging>
5   <name>Hello World REST app Project</name>
6   <description>This is the hello-rest project</description>
7   <parent>
8       <groupId>com.redhat.training</groupId>
9       <artifactId>parent-pom</artifactId>
10       <version>1.0</version>
11       <relativePath>../pom.xml</relativePath>
12   </parent>
13
14   <properties>
15     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16   </properties>
17
18     <dependencies>
19
20         <!-- First declare the APIs we depend on and need for compilation. All
21             of them are provided by JBoss EAP -->
22
23         <!-- Import the CDI API, we use provided scope as the API is included in
24             JBoss EAP -->
25         <dependency>
26             <groupId>javax.enterprise</groupId>
27             <artifactId>cdi-api</artifactId>
28             <scope>provided</scope>
29         </dependency>
30
31         <!-- Import the Common Annotations API (JSR-250), we use provided scope
32             as the API is included in JBoss EAP -->
33         <dependency>
34             <groupId>org.jboss.spec.javax.annotation</groupId>
35             <artifactId>jboss-annotations-api_1.2_spec</artifactId>
36             <scope>provided</scope>
37         </dependency>
38
39         <!-- Import the JAX-RS API, we use provided scope as the API is included
40             in JBoss EAP -->
41         <dependency>
42             <groupId>org.jboss.spec.javax.ws.rs</groupId>
43             <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
44             <scope>provided</scope>
45         </dependency>
46
47         <!-- Import the JPA API, we use provided scope as the API is included in
48             JBoss EAP -->
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         <!-- Import the EJB API, we use provided scope as the API is included in
56             JBoss EAP -->
57         <dependency>
58             <groupId>org.jboss.spec.javax.ejb</groupId>
59             <artifactId>jboss-ejb-api_3.2_spec</artifactId>
60             <scope>provided</scope>
61         </dependency>
62
63         <dependency>
64             <groupId>org.jboss.spec.javax.jms</groupId>
65             <artifactId>jboss-jms-api_2.0_spec</artifactId>
66             <scope>provided</scope>
67         </dependency>
68
69         <!-- Bean Validation Implementation -->
70         <!-- Provides portable constraints such as @Email -->
71         <!-- Hibernate Validator is shipped in JBoss EAP -->
72         <dependency>
73             <groupId>org.hibernate</groupId>
74             <artifactId>hibernate-validator</artifactId>
75             <scope>provided</scope>
76             <exclusions>
77                 <exclusion>
78                     <groupId>org.slf4j</groupId>
79                     <artifactId>slf4j-api</artifactId>
80                 </exclusion>
81             </exclusions>
82         </dependency>
83
84             <dependency>
85                 <groupId>org.hibernate</groupId>
86                 <artifactId>hibernate-search-orm</artifactId>
87                  <scope>provided</scope>
88             </dependency>
89
90              <dependency>
91                 <groupId>org.hibernate</groupId>
92                 <artifactId>hibernate-entitymanager</artifactId>
93                  <scope>provided</scope>
94             </dependency>
95
96         <!-- Import the JSF API, we use provided scope as the API is included in
97             JBoss EAP -->
98         <dependency>
99             <groupId>org.jboss.spec.javax.faces</groupId>
100             <artifactId>jboss-jsf-api_2.2_spec</artifactId>
101             <scope>provided</scope>
102         </dependency>
103
104         <dependency>
105               <groupId>org.jboss.spec.javax.servlet</groupId>
106               <artifactId>jboss-servlet-api_3.1_spec</artifactId>
107             <scope>provided</scope>
108           </dependency>
109
110         <!-- Annotation processor to generate the JPA metamodel classes for
111             typesafe criteria queries -->
112         <dependency>
113             <groupId>org.hibernate</groupId>
114             <artifactId>hibernate-jpamodelgen</artifactId>
115             <scope>provided</scope>
116         </dependency>
117
118         <!-- Annotation processor that raising compilation errors whenever constraint
119             annotations are incorrectly used. -->
120         <dependency>
121             <groupId>org.hibernate</groupId>
122             <artifactId>hibernate-validator-annotation-processor</artifactId>
123             <scope>provided</scope>
124         </dependency>
125
126     </dependencies>
127
128     <build>
129         <finalName>hello-rest</finalName>
130         <plugins>
131             <plugin>
132                 <artifactId>maven-war-plugin</artifactId>
133                 <version>${version.war.plugin}</version>
134                 <extensions>false</extensions>
135                 <configuration>
136                     <failOnMissingWebXml>false</failOnMissingWebXml>
137                     <archive>
138                         <manifestEntries>
139                             <Dependencies>com.google.guava,org.slf4j
140                             </Dependencies>
141                         </manifestEntries>
142                     </archive>
143                 </configuration>
144             </plugin>
145         </plugins>
146     </build>
147
148 </project>