pom.xml 11.5 KB
Newer Older
1
2
3
4
<?xml version="1.0" encoding="UTF-8"?>
<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">
    <modelVersion>4.0.0</modelVersion>

5
6
7
8
9
10
    <parent>
        <groupId>it.inaf.ia2.tsm</groupId>
        <artifactId>tasman-bom</artifactId>
        <version>1.3.2</version>
    </parent>
    
11
    <artifactId>tasman-webapp</artifactId>
12
13
14
15
    <packaging>war</packaging>

    <properties>
        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
Sonia Zorba's avatar
Fix    
Sonia Zorba committed
16
        <jersey.version>2.23.2</jersey.version>
17
        <deltaspike.version>1.7.2</deltaspike.version>
18
19
20
21
22
        <enable.weld.config.start></enable.weld.config.start>
        <enable.weld.config.end></enable.weld.config.end>
        <enable.jetty.config.start></enable.jetty.config.start>
        <enable.jetty.config.end></enable.jetty.config.end>
    </properties>
23
        
24
25
    <profiles>    
        <profile>
26
            <id>FullEE</id>
27
28
29
            <activation>
                <property>
                    <name>environment</name>
30
                    <value>FullEE</value>
31
32
33
34
35
36
                </property>
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
        
        <profile>
37
            <id>ServletContainer</id>
38
39
40
            <activation>
                <property>
                    <name>environment</name>
41
                    <value>ServletContainer</value>
42
43
                </property>
            </activation>
44
45
46
47
            <properties>                
                <enable.weld.config.start>&lt;!-- </enable.weld.config.start>
                <enable.weld.config.end> --&gt;</enable.weld.config.end>
            </properties>
48
49
50
51
52
53
54
55
56
57
58
59
60
            <dependencies>
                <dependency>
                    <groupId>org.glassfish</groupId>
                    <artifactId>javax.faces</artifactId>
                    <version>2.2.8-02</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>org.jboss.weld.servlet</groupId>
                    <artifactId>weld-servlet</artifactId>
                    <version>2.3.4.Final</version>
                    <scope>runtime</scope>
                </dependency>
61
62
63
64
65
66
67
68
69
70
71
72
                <dependency>
                    <groupId>org.glassfish.jersey.containers</groupId>
                    <artifactId>jersey-container-servlet</artifactId>
                    <version>${jersey.version}</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>org.glassfish.jersey.ext.cdi</groupId>
                    <artifactId>jersey-cdi1x</artifactId>
                    <version>${jersey.version}</version>
                    <scope>runtime</scope>
                </dependency>
73
74
75
76
77
78
                <dependency>
                    <groupId>org.glassfish.jersey.media</groupId>
                    <artifactId>jersey-media-json-jackson</artifactId>
                    <version>${jersey.version}</version>
                    <scope>runtime</scope>
                </dependency>
79
80
81
82
83
84
85
86
87
88
89
90
                <dependency>
                    <groupId>org.glassfish</groupId>
                    <artifactId>javax.json</artifactId>
                    <version>1.0.4</version>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>org.glassfish</groupId>
                    <artifactId>javax.el</artifactId>
                    <!-- http://stackoverflow.com/a/33420995/771431 -->
                    <version>3.0.1-b08</version>
                </dependency>
Sonia Zorba's avatar
Sonia Zorba committed
91
92
93
94
                <dependency>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </dependency>
95
96
97
98
99
100
101
102
                <dependency>
                    <groupId>javax.servlet</groupId>
                    <artifactId>jstl</artifactId>
                    <version>1.2</version>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>
        </profile>
103
104
105
106
107
108
109
110
111
112
113
114
115
        <profile>
            <id>Jetty</id>
            <!-- for Jetty use both this and the ServletContainer profile -->
            <activation>
                <property>
                    <name>environment</name>
                    <value>Jetty</value>
                </property>
            </activation>
            <properties>
                <enable.jetty.config.start>&lt;!-- </enable.jetty.config.start>
                <enable.jetty.config.end> --&gt;</enable.jetty.config.end>
            </properties>
116
117
            <dependencies>
                <dependency>
Sonia Zorba's avatar
Sonia Zorba committed
118
                    <groupId>${project.groupId}</groupId>
119
                    <artifactId>tasman-core</artifactId>
Sonia Zorba's avatar
Sonia Zorba committed
120
                    <version>${project.version}</version>
121
122
123
124
125
126
127
128
129
                    <exclusions>
                        <!-- exclusion due to tomcat-jdbc dependency conflicting with Jetty -->
                        <exclusion>
                            <groupId>org.apache.tomcat</groupId>
                            <artifactId>tomcat-juli</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
            </dependencies>
130
        </profile>
131
132
    </profiles>
    
133
    <dependencies>
Sonia Zorba's avatar
Sonia Zorba committed
134
        <dependency>
135
            <groupId>${project.groupId}</groupId>
136
            <artifactId>tasman-core</artifactId>
137
            <version>${project.version}</version>
Sonia Zorba's avatar
Sonia Zorba committed
138
        </dependency>
139
        <dependency>
140
141
142
            <groupId>ari.ucidy</groupId>
            <artifactId>ucidy</artifactId>
            <version>1.0</version>
143
        </dependency>
144
145
146
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
147
            <version>7.0</version>
148
149
            <scope>provided</scope>
        </dependency>
Sonia Zorba's avatar
Sonia Zorba committed
150
151
152
153
154
        <dependency>
            <groupId>uk.me.nxg</groupId>
            <artifactId>unity</artifactId>
            <version>1.0</version>
        </dependency>
155
156
157
158
159
160
161
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.37</version>
            <type>jar</type>
            <scope>runtime</scope>
        </dependency>
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
        <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-jsf-module-impl</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-jsf-module-api</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.core</groupId>
            <artifactId>deltaspike-core-api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.core</groupId>
            <artifactId>deltaspike-core-impl</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-weld</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-servlet-module-impl</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.modules</groupId>
            <artifactId>deltaspike-servlet-module-api</artifactId>
            <scope>compile</scope>
        </dependency>
202
203
    </dependencies>

204
205
206
207
208
209
210
211
212
213
214
215
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.deltaspike.distribution</groupId>
                <artifactId>distributions-bom</artifactId>
                <version>${deltaspike.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    
216
    <build>
217
        <resources>
218
            <!-- Include version.txt and filter it -->
219
220
221
222
223
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/version.txt</include>
224
                    <include>**/webapp.properties</include>
225
226
                </includes>
            </resource>
227
            <!-- Include all other files without filtering them -->
228
229
230
231
232
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <excludes>
                    <exclude>**/version.txt</exclude>
233
                    <exclude>**/webapp.properties</exclude>
234
235
236
                </excludes>
            </resource>
        </resources>
237
238
239
240
241
242
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
243
244
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
245
246
247
248
249
250
251
252
253
254
                    <compilerArguments>
                        <endorseddirs>${endorsed.dir}</endorseddirs>
                    </compilerArguments>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
Sonia Zorba's avatar
Sonia Zorba committed
255
                    <attachClasses>true</attachClasses>
256
                    <failOnMissingWebXml>false</failOnMissingWebXml>
257
258
259
260
261
262
263
264
265
                    <webResources> 
                        <resource>
                            <directory>src/main/webapp</directory>
                            <filtering>true</filtering>
                            <includes>
                                <include>**/web.xml</include>
                            </includes>
                        </resource>
                    </webResources>
266
267
268
269
270
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
271
                <version>2.8</version>
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
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${endorsed.dir}</outputDirectory>
                            <silent>true</silent>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>javax</groupId>
                                    <artifactId>javaee-endorsed-api</artifactId>
                                    <version>7.0</version>
                                    <type>jar</type>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>