1
|
<?xml version="1.0" ?>
|
2
|
<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">
|
3
|
<parent>
|
4
|
<groupId>eu.dnetlib</groupId>
|
5
|
<artifactId>dnet-container-parent</artifactId>
|
6
|
<version>1.0.0-SNAPSHOT</version>
|
7
|
</parent>
|
8
|
<modelVersion>4.0.0</modelVersion>
|
9
|
<groupId>eu.dnetlib</groupId>
|
10
|
<artifactId>uoa-web-generic</artifactId>
|
11
|
<packaging>war</packaging>
|
12
|
<version>1.0.0-SNAPSHOT</version>
|
13
|
|
14
|
<scm>
|
15
|
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-web-generic/trunk</developerConnection>
|
16
|
</scm>
|
17
|
|
18
|
<properties>
|
19
|
<struts2.version>2.3.24</struts2.version>
|
20
|
<web.generic.version>default</web.generic.version>
|
21
|
<!-- To make package with different static content than the default one:
|
22
|
mvn clean -Dweb.generic.version=${web.generic.version} package -->
|
23
|
</properties>
|
24
|
|
25
|
<build>
|
26
|
<plugins>
|
27
|
<plugin>
|
28
|
<artifactId>maven-clean-plugin</artifactId>
|
29
|
<version>2.6.1</version>
|
30
|
<configuration>
|
31
|
<filesets>
|
32
|
<fileset>
|
33
|
<directory>${basedir}/src/main/webapp/pages</directory>
|
34
|
<includes>
|
35
|
<include>*/**</include>
|
36
|
</includes>
|
37
|
</fileset>
|
38
|
|
39
|
<fileset>
|
40
|
<directory>${basedir}/src/main/webapp/static-content</directory>
|
41
|
<includes>
|
42
|
<include>*/**</include>
|
43
|
</includes>
|
44
|
</fileset>
|
45
|
</filesets>
|
46
|
</configuration>
|
47
|
</plugin>
|
48
|
<plugin>
|
49
|
<groupId>org.apache.maven.plugins</groupId>
|
50
|
<artifactId>maven-compiler-plugin</artifactId>
|
51
|
<configuration>
|
52
|
<excludes>
|
53
|
<exclude>gr/uoa/di/driver/web/announcements/*.java</exclude>
|
54
|
<exclude>gr/uoa/di/driver/web/ep/actions/*.java</exclude>
|
55
|
<exclude>gr/uoa/di/driver/web/myDriver/*.java</exclude>
|
56
|
<!--
|
57
|
<exclude>gr/uoa/di/driver/web/rss/*.java</exclude>
|
58
|
-->
|
59
|
</excludes>
|
60
|
</configuration>
|
61
|
</plugin>
|
62
|
<plugin>
|
63
|
<artifactId>maven-war-plugin</artifactId>
|
64
|
<version>2.6</version>
|
65
|
<configuration>
|
66
|
<packagingExcludes>WEB-INF/lib/javax.servlet-api-3.0.1.jar</packagingExcludes>
|
67
|
</configuration>
|
68
|
</plugin>
|
69
|
<plugin>
|
70
|
<artifactId>maven-resources-plugin</artifactId>
|
71
|
<version>2.7</version>
|
72
|
<executions>
|
73
|
<execution>
|
74
|
<id>copy-resources</id>
|
75
|
<!-- here the phase you need -->
|
76
|
<phase>compile</phase>
|
77
|
<goals>
|
78
|
<goal>copy-resources</goal>
|
79
|
</goals>
|
80
|
<configuration>
|
81
|
<outputDirectory>${basedir}/src/main/webapp</outputDirectory>
|
82
|
<encoding>UTF-8</encoding>
|
83
|
<resources>
|
84
|
<resource>
|
85
|
<targetPath>pages</targetPath>
|
86
|
<directory>/home/kiatrop/projects/dnet/4.0/uoa-web-jsp/src/${web.generic.version}</directory>
|
87
|
</resource>
|
88
|
<resource>
|
89
|
<targetPath>static-content</targetPath>
|
90
|
<filtering>true</filtering>
|
91
|
<directory>/home/kiatrop/projects/dnet/4.0/uoa-web-static/src/${web.generic.version}</directory>
|
92
|
</resource>
|
93
|
</resources>
|
94
|
</configuration>
|
95
|
</execution>
|
96
|
<execution>
|
97
|
<id>copy-resources-2</id>
|
98
|
<!-- here the phase you need -->
|
99
|
<phase>compile</phase>
|
100
|
<goals>
|
101
|
<goal>copy-resources</goal>
|
102
|
</goals>
|
103
|
<configuration>
|
104
|
<outputDirectory>${basedir}/src/main/webapp</outputDirectory>
|
105
|
<encoding>UTF-8</encoding>
|
106
|
<resources>
|
107
|
<resource>
|
108
|
<targetPath>pages</targetPath>
|
109
|
<directory>/home/kiatrop/projects/dnet/4.0/uoa-web-jsp/src/default</directory>
|
110
|
</resource>
|
111
|
<resource>
|
112
|
<targetPath>static-content</targetPath>
|
113
|
<directory>/home/kiatrop/projects/dnet/4.0/uoa-web-static/src/default</directory>
|
114
|
</resource>
|
115
|
</resources>
|
116
|
</configuration>
|
117
|
</execution>
|
118
|
</executions>
|
119
|
<dependencies>
|
120
|
<dependency>
|
121
|
<groupId>org.apache.maven.shared</groupId>
|
122
|
<artifactId>maven-filtering</artifactId>
|
123
|
<version>1.3</version>
|
124
|
</dependency>
|
125
|
</dependencies>
|
126
|
</plugin>
|
127
|
</plugins>
|
128
|
|
129
|
<!-- <resources>
|
130
|
<resource>
|
131
|
<directory>src/resources</directory>
|
132
|
<excludes>
|
133
|
<exclude>struts-community.xml</exclude>
|
134
|
<exclude>struts-ep.xml</exclude>
|
135
|
<exclude>struts-myDriver.xml</exclude>
|
136
|
</excludes>
|
137
|
</resource>
|
138
|
</resources> -->
|
139
|
</build>
|
140
|
|
141
|
<dependencies>
|
142
|
<dependency>
|
143
|
<groupId>org.apache.struts</groupId>
|
144
|
<artifactId>struts2-core</artifactId>
|
145
|
<version>${struts2.version}</version>
|
146
|
<exclusions>
|
147
|
<exclusion> <!-- declare the exclusion here -->
|
148
|
<groupId>javax.servlet.jsp</groupId>
|
149
|
<artifactId>jsp-api</artifactId>
|
150
|
</exclusion>
|
151
|
</exclusions>
|
152
|
</dependency>
|
153
|
<dependency>
|
154
|
<groupId>org.apache.struts</groupId>
|
155
|
<artifactId>struts2-spring-plugin</artifactId>
|
156
|
<version>${struts2.version}</version>
|
157
|
<exclusions>
|
158
|
<exclusion>
|
159
|
<groupId>org.springframework</groupId>
|
160
|
<artifactId>spring-beans</artifactId>
|
161
|
</exclusion>
|
162
|
<exclusion>
|
163
|
<groupId>org.springframework</groupId>
|
164
|
<artifactId>spring-core</artifactId>
|
165
|
</exclusion>
|
166
|
<exclusion>
|
167
|
<groupId>org.springframework</groupId>
|
168
|
<artifactId>spring-context</artifactId>
|
169
|
</exclusion>
|
170
|
<exclusion>
|
171
|
<groupId>org.springframework</groupId>
|
172
|
<artifactId>spring-web</artifactId>
|
173
|
</exclusion>
|
174
|
</exclusions>
|
175
|
</dependency>
|
176
|
<dependency>
|
177
|
<groupId>org.apache.struts</groupId>
|
178
|
<artifactId>struts2-dojo-plugin</artifactId>
|
179
|
<version>${struts2.version}</version>
|
180
|
</dependency>
|
181
|
<dependency>
|
182
|
<groupId>eu.dnetlib</groupId>
|
183
|
<artifactId>uoa-hcm</artifactId>
|
184
|
<version>[1.0.0, 1.2.0-SNAPSHOT)</version>
|
185
|
</dependency>
|
186
|
<dependency>
|
187
|
<groupId>eu.dnetlib</groupId>
|
188
|
<artifactId>uoa-api</artifactId>
|
189
|
<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
|
190
|
</dependency>
|
191
|
<dependency>
|
192
|
<groupId>eu.dnetlib</groupId>
|
193
|
<artifactId>uoa-utils</artifactId>
|
194
|
<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
|
195
|
</dependency>
|
196
|
<dependency>
|
197
|
<groupId>eu.dnetlib</groupId>
|
198
|
<artifactId>uoa-commons</artifactId>
|
199
|
<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
|
200
|
<exclusions>
|
201
|
<exclusion>
|
202
|
<artifactId>cglib</artifactId>
|
203
|
<groupId>cglib</groupId>
|
204
|
</exclusion>
|
205
|
</exclusions>
|
206
|
</dependency>
|
207
|
<dependency>
|
208
|
<groupId>eu.dnetlib</groupId>
|
209
|
<artifactId>uoa-clients</artifactId>
|
210
|
<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
|
211
|
</dependency>
|
212
|
<dependency>
|
213
|
<groupId>backport-util-concurrent</groupId>
|
214
|
<artifactId>backport-util-concurrent-java12</artifactId>
|
215
|
<version>3.1</version>
|
216
|
</dependency>
|
217
|
<dependency>
|
218
|
<groupId>eu.dnetlib</groupId>
|
219
|
<artifactId>uoa-web-utils</artifactId>
|
220
|
<version>[1.0.0-SNAPSHOT, 1.2.0-SNAPSHOT)</version>
|
221
|
</dependency>
|
222
|
<dependency>
|
223
|
<groupId>eu.dnetlib</groupId>
|
224
|
<artifactId>dnet-runtime</artifactId>
|
225
|
<version>[1.0.0]</version>
|
226
|
</dependency>
|
227
|
<dependency>
|
228
|
<groupId>org.apache.struts</groupId>
|
229
|
<artifactId>struts2-json-plugin</artifactId>
|
230
|
<version>2.3.20</version>
|
231
|
</dependency>
|
232
|
<dependency>
|
233
|
<groupId>javax.mail</groupId>
|
234
|
<artifactId>mail</artifactId>
|
235
|
<version>1.4.7</version>
|
236
|
<exclusions>
|
237
|
<exclusion>
|
238
|
<groupId>javax.activation</groupId>
|
239
|
<artifactId>activation</artifactId>
|
240
|
</exclusion>
|
241
|
</exclusions>
|
242
|
</dependency>
|
243
|
<dependency>
|
244
|
<groupId>org.apache.struts</groupId>
|
245
|
<artifactId>struts2-json-plugin</artifactId>
|
246
|
<version>2.3.24</version>
|
247
|
</dependency>
|
248
|
</dependencies>
|
249
|
</project>
|
250
|
|