Project

General

Profile

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
	</properties>
22

    
23
    <build>
24
        <plugins>
25
            <plugin>
26
                <artifactId>maven-clean-plugin</artifactId>
27
                <version>2.6.1</version>
28
                <configuration>
29
                    <filesets>
30
                        <fileset>
31
                            <directory>${basedir}/src/main/webapp/pages</directory>
32
                            <includes>
33
                                <include>*/**</include>
34
                            </includes>
35
                        </fileset>
36

    
37
                        <fileset>
38
                            <directory>${basedir}/src/main/webapp/static-content</directory>
39
                            <includes>
40
                                <include>*/**</include>
41
                            </includes>
42
                        </fileset>
43
                    </filesets>
44
                </configuration>
45
            </plugin>
46
            <plugin>
47
                <groupId>org.apache.maven.plugins</groupId>
48
                <artifactId>maven-compiler-plugin</artifactId>
49
                <configuration>
50
                    <excludes>
51
                        <exclude>gr/uoa/di/driver/web/announcements/*.java</exclude>
52
                        <exclude>gr/uoa/di/driver/web/ep/actions/*.java</exclude>
53
                        <exclude>gr/uoa/di/driver/web/myDriver/*.java</exclude>
54
<!--
55
                        <exclude>gr/uoa/di/driver/web/rss/*.java</exclude>
56
-->
57
                    </excludes>
58
                </configuration>
59
            </plugin>
60
            <plugin>
61
                <artifactId>maven-war-plugin</artifactId>
62
                <version>2.6</version>
63
                <configuration>
64
                    <packagingExcludes>WEB-INF/lib/javax.servlet-api-3.0.1.jar</packagingExcludes>
65
                </configuration>
66
            </plugin>
67
            <plugin>
68
                <artifactId>maven-resources-plugin</artifactId>
69
                <version>2.7</version>
70
                <executions>
71
                    <execution>
72
                        <id>copy-resources</id>
73
                        <!-- here the phase you need -->
74
                        <phase>compile</phase>
75
                        <goals>
76
                            <goal>copy-resources</goal>
77
                        </goals>
78
                        <configuration>
79
                            <outputDirectory>${basedir}/src/main/webapp</outputDirectory>
80
                            <encoding>UTF-8</encoding>
81
                            <resources>
82
                                <resource>
83
                                    <targetPath>pages</targetPath>
84
                                    <directory>/home/kiatrop/projects/dnet/4.0/uoa-web-jsp/src/${web.generic.version}</directory>
85
                                </resource>
86
                                <resource>
87
                                    <targetPath>static-content</targetPath>
88
                                    <filtering>true</filtering>
89
                                    <directory>/home/kiatrop/projects/dnet/4.0/uoa-web-static/src/${web.generic.version}</directory>
90
                                </resource>
91
                            </resources>
92
                        </configuration>
93
                    </execution>
94
                    <execution>
95
                        <id>copy-resources-2</id>
96
                        <!-- here the phase you need -->
97
                        <phase>compile</phase>
98
                        <goals>
99
                            <goal>copy-resources</goal>
100
                        </goals>
101
                        <configuration>
102
                            <outputDirectory>${basedir}/src/main/webapp</outputDirectory>
103
                            <encoding>UTF-8</encoding>
104
                            <resources>
105
                                <resource>
106
                                    <targetPath>pages</targetPath>
107
                                    <directory>/home/kiatrop/projects/dnet/4.0/uoa-web-jsp/src/default</directory>
108
                                </resource>
109
                                <resource>
110
                                    <targetPath>static-content</targetPath>
111
                                    <directory>/home/kiatrop/projects/dnet/4.0/uoa-web-static/src/default</directory>
112
                                </resource>
113
                            </resources>
114
                        </configuration>
115
                    </execution>
116
                </executions>
117
            </plugin>
118
        </plugins>
119

    
120
<!--        <resources>
121
            <resource>
122
                <directory>src/resources</directory>
123
                <excludes>
124
                    <exclude>struts-community.xml</exclude>
125
                    <exclude>struts-ep.xml</exclude>
126
                    <exclude>struts-myDriver.xml</exclude>
127
                </excludes>
128
            </resource>
129
        </resources> -->
130
    </build>
131

    
132
	<dependencies>
133
		<dependency>
134
			<groupId>org.apache.struts</groupId>
135
			<artifactId>struts2-core</artifactId>
136
			<version>${struts2.version}</version>
137
			<exclusions>
138
				<exclusion>  <!-- declare the exclusion here -->
139
					<groupId>javax.servlet.jsp</groupId>
140
					<artifactId>jsp-api</artifactId>
141
				</exclusion>
142
			</exclusions>
143
		</dependency>
144
		<dependency>
145
			<groupId>org.apache.struts</groupId>
146
			<artifactId>struts2-spring-plugin</artifactId>
147
			<version>${struts2.version}</version>
148
			<exclusions>
149
				<exclusion>
150
					<groupId>org.springframework</groupId>
151
					<artifactId>spring-beans</artifactId>
152
				</exclusion>
153
				<exclusion>
154
					<groupId>org.springframework</groupId>
155
					<artifactId>spring-core</artifactId>
156
				</exclusion>
157
				<exclusion>
158
					<groupId>org.springframework</groupId>
159
					<artifactId>spring-context</artifactId>
160
				</exclusion>
161
				<exclusion>
162
					<groupId>org.springframework</groupId>
163
					<artifactId>spring-web</artifactId>
164
				</exclusion>
165
			</exclusions>
166
		</dependency>
167
		<dependency>
168
			<groupId>org.apache.struts</groupId>
169
			<artifactId>struts2-dojo-plugin</artifactId>
170
			<version>${struts2.version}</version>
171
		</dependency>
172
		<dependency>
173
			<groupId>eu.dnetlib</groupId>
174
			<artifactId>uoa-hcm</artifactId>
175
			<version>[1.0.0, 1.2.0-SNAPSHOT)</version>
176
		</dependency>
177
		<dependency>
178
			<groupId>eu.dnetlib</groupId>
179
			<artifactId>uoa-api</artifactId>
180
			<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
181
		</dependency>
182
		<dependency>
183
			<groupId>eu.dnetlib</groupId>
184
			<artifactId>uoa-utils</artifactId>
185
			<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
186
		</dependency>
187
		<dependency>
188
			<groupId>eu.dnetlib</groupId>
189
			<artifactId>uoa-commons</artifactId>
190
			<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
191
			<exclusions>
192
				<exclusion>
193
					<artifactId>cglib</artifactId>
194
					<groupId>cglib</groupId>
195
				</exclusion>
196
			</exclusions>
197
		</dependency>
198
		<dependency>
199
			<groupId>eu.dnetlib</groupId>
200
			<artifactId>uoa-clients</artifactId>
201
			<version>[1.1.0, 1.2.0-SNAPSHOT)</version>
202
		</dependency>
203
        <dependency>
204
            <groupId>backport-util-concurrent</groupId>
205
            <artifactId>backport-util-concurrent-java12</artifactId>
206
            <version>3.1</version>
207
        </dependency>
208
        <dependency>
209
            <groupId>eu.dnetlib</groupId>
210
            <artifactId>uoa-web-utils</artifactId>
211
            <version>[1.0.0-SNAPSHOT, 1.2.0-SNAPSHOT)</version>
212
        </dependency>
213
		<dependency>
214
			<groupId>eu.dnetlib</groupId>
215
			<artifactId>dnet-runtime</artifactId>
216
			<version>[1.0.0]</version>
217
		</dependency>
218
        <dependency>
219
            <groupId>org.apache.struts</groupId>
220
            <artifactId>struts2-json-plugin</artifactId>
221
            <version>2.3.20</version>
222
        </dependency>
223
		<dependency>
224
			<groupId>javax.mail</groupId>
225
			<artifactId>mail</artifactId>
226
			<version>1.4.7</version>
227
			<exclusions>
228
				<exclusion>
229
					<groupId>javax.activation</groupId>
230
					<artifactId>activation</artifactId>
231
				</exclusion>
232
			</exclusions>
233
		</dependency>
234
        <dependency>
235
            <groupId>org.apache.struts</groupId>
236
            <artifactId>struts2-json-plugin</artifactId>
237
            <version>2.3.24</version>
238
        </dependency>
239
    </dependencies>
240
</project>
241

    
(2-2/2)