Ravi Srinivasan
2018-09-11 b9209f6413cb6985c0089f9677f4db9b52ca1395
commit | author | age
f04579 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>stateless-ejb</artifactId>
4   <packaging>war</packaging>
5   <name>Stateless EJB web app Project</name>
6   <description>This is the Stateless EJB 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 EJB API, we use provided scope as the API is included in
32             JBoss EAP -->
33         <dependency>
34             <groupId>org.jboss.spec.javax.ejb</groupId>
35             <artifactId>jboss-ejb-api_3.2_spec</artifactId>
36             <scope>provided</scope>
37         </dependency>
38
39
40         <!-- Import the JSF API, we use provided scope as the API is included in
41             JBoss EAP -->
42         <dependency>
43             <groupId>org.jboss.spec.javax.faces</groupId>
44             <artifactId>jboss-jsf-api_2.2_spec</artifactId>
45             <scope>provided</scope>
46         </dependency>
47
48
49          <dependency>
50             <groupId>junit</groupId>
51             <artifactId>junit</artifactId>
52             <scope>test</scope>
53         </dependency>
54
55         <dependency>
56             <groupId>org.jboss.arquillian.junit</groupId>
57             <artifactId>arquillian-junit-container</artifactId>
58             <scope>test</scope>
59         </dependency>
60
61         <dependency>
62             <groupId>org.jboss.arquillian.protocol</groupId>
63             <artifactId>arquillian-protocol-servlet</artifactId>
64             <scope>test</scope>
65         </dependency>
66
67         <!-- Need to explicitly reference this version, or else there will be an exception
68         due to a bug in Arquilian -->
69         <dependency>
70             <groupId>org.wildfly.arquillian</groupId>
71             <artifactId>wildfly-arquillian-common</artifactId>
72             <version>2.0.0.Final</version>
73         </dependency>
74
75     </dependencies>
76
77     <build>
78         <finalName>stateless-ejb</finalName>
79         <plugins>
80             <plugin>
81                 <artifactId>maven-war-plugin</artifactId>
82                 <version>${version.war.plugin}</version>
83                 <extensions>false</extensions>
84                 <configuration>
85                     <failOnMissingWebXml>false</failOnMissingWebXml>
86                     <archive>
87                         <manifestEntries>
88                             <Dependencies>com.google.guava,org.slf4j
89                             </Dependencies>
90                         </manifestEntries>
91                     </archive>
92                 </configuration>
93             </plugin>
94         </plugins>
95     </build>
96
97     <profiles>
98         <profile>
99             <!-- This profile skips all tests, though you can tune
100                 it to run just unit tests based on a custom pattern -->
101             <!-- Separate profiles are provided for running all tests, including
102                 Arquillian tests that execute in the specified container -->
103            <!-- Use this profile if you just want to build a WAR file without running any unit tests -->
104            <!-- Run like this:  mvn clean package -Pdefault -->
105             <id>default</id>
106             <build>
107                 <plugins>
108                     <plugin>
109                         <artifactId>maven-surefire-plugin</artifactId>
110                         <version>${version.surefire.plugin}</version>
111                         <configuration>
112                             <skip>true</skip>
113                         </configuration>
114                     </plugin>
115                 </plugins>
116             </build>
117         </profile>
118         <profile>
119             <!-- An optional Arquillian testing profile that
120                 executes tests in a remote JBoss EAP instance -->
121             <!-- Run with: mvn clean test -Parq-wildfly-remote or, simply run: mvn test -->
122             <!-- To make it easy to run tests from within JBDS, this profile is set as active by default -->
123             <id>arq-wildfly-remote</id>
124             <activation>
125                 <activeByDefault>true</activeByDefault>
126             </activation>
127             <dependencies>
128                 <dependency>
129                     <groupId>org.wildfly.arquillian</groupId>
130                     <artifactId>wildfly-arquillian-container-remote</artifactId>
131                     <scope>test</scope>
132                 </dependency>
133             </dependencies>
134         </profile>
135     </profiles>
136
137 </project>