source: vlo/branches/vlo-3.0/vlo-web-app/pom.xml @ 4744

Last change on this file since 4744 was 4744, checked in by Twan Goosen, 11 years ago

logging settings:

  • properties filtered from pom to differentiate between development (log in console) and production (log to file, default)
  • separate properties for unit tests
File size: 11.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
6    <parent>
7        <groupId>eu.clarin.cmdi</groupId>
8        <artifactId>vlo</artifactId>
9        <version>3.0-SNAPSHOT</version>
10    </parent>
11   
12    <modelVersion>4.0.0</modelVersion>
13    <groupId>eu.clarin.cmdi</groupId>
14    <artifactId>vlo-web-app</artifactId>
15    <packaging>war</packaging>
16    <version>3.0-SNAPSHOT</version>
17    <name>VLO Web Application</name>
18    <description></description>
19
20    <properties>
21        <wicket.version>6.12.0</wicket.version>
22        <spring.version>3.2.5.RELEASE</spring.version>
23        <jetty.version>7.6.13.v20130916</jetty.version>
24        <!-- selects the appender for the log4j root logger -->
25        <log4j.appender>File</log4j.appender>
26        <vlo.logging.level>INFO</vlo.logging.level>
27    </properties>
28    <dependencies>
29        <!-- Intra-project dependencies -->
30        <dependency>
31            <groupId>${project.groupId}</groupId>
32            <artifactId>vlo-commons</artifactId>
33            <version>${project.version}</version>
34        </dependency>
35        <!-- Importer only used in web app for testing -->
36        <dependency>
37            <groupId>${project.groupId}</groupId>
38            <artifactId>vlo-importer</artifactId>
39            <version>${project.version}</version>
40            <scope>test</scope>
41        </dependency>
42       
43        <!--  WICKET DEPENDENCIES -->
44        <dependency>
45            <groupId>org.apache.wicket</groupId>
46            <artifactId>wicket-extensions</artifactId>
47            <version>${wicket.version}</version>
48        </dependency>
49        <!-- This gives us dependency injection and other Spring niceness -->
50        <dependency>
51            <groupId>org.apache.wicket</groupId>
52            <artifactId>wicket-spring</artifactId>
53            <version>${wicket.version}</version>
54        </dependency>
55       
56        <!-- SPRING FRAMEWORK -->
57        <dependency>
58            <groupId>org.springframework</groupId>
59            <artifactId>spring-context</artifactId>
60            <version>${spring.version}</version>
61            <exclusions>
62                <!--
63                    We want Spring to use SLF4J instead (using
64                    jcl-over-slf4j, see below)
65                -->
66                <exclusion>
67                    <groupId>commons-logging</groupId> <!-- aka JCL -->
68                    <artifactId>commons-logging</artifactId>
69                </exclusion>
70            </exclusions>
71        </dependency>
72        <dependency>
73            <groupId>org.springframework</groupId>
74            <artifactId>spring-web</artifactId>
75            <version>${spring.version}</version>
76        </dependency>
77        <dependency>
78            <groupId>org.springframework</groupId>
79            <artifactId>spring-test</artifactId>
80            <version>${spring.version}</version>
81            <scope>test</scope>
82        </dependency>
83       
84        <!-- LOGGING DEPENDENCIES - LOG4J -->
85        <dependency>
86            <groupId>org.slf4j</groupId>
87            <artifactId>slf4j-log4j12</artifactId>
88            <version>${slf4j.version}</version>
89        </dependency>
90        <!-- Make Spring log to SLF4J, too (drop-in replacement for JCL) -->
91        <dependency>
92            <groupId>org.slf4j</groupId>
93            <artifactId>jcl-over-slf4j</artifactId>
94            <version>${slf4j.version}</version>
95        </dependency>
96
97        <!--  JETTY DEPENDENCIES FOR TESTING  -->
98        <dependency>
99            <groupId>org.eclipse.jetty.aggregate</groupId>
100            <artifactId>jetty-all-server</artifactId>
101            <version>${jetty.version}</version>
102            <scope>provided</scope>
103        </dependency>
104        <dependency>
105            <groupId>org.apache.solr</groupId>
106            <artifactId>solr-solrj</artifactId>
107            <version>${solr.version}</version>
108            <type>jar</type>
109        </dependency>
110        <!-- SOLR TESTING -->
111        <dependency>
112            <groupId>org.apache.solr</groupId>
113            <artifactId>solr-test-framework</artifactId>
114            <version>${solr.version}</version>
115            <scope>test</scope>
116            <type>jar</type>
117        </dependency>
118        <dependency>
119            <groupId>org.apache.solr</groupId>
120            <artifactId>solr-core</artifactId>
121            <version>${solr.version}</version>
122            <scope>test</scope>
123            <type>jar</type>
124        </dependency>
125        <!-- JMOCK FOR MOCKING -->
126        <dependency>
127            <groupId>org.jmock</groupId>
128            <artifactId>jmock-junit4</artifactId>
129            <version>2.6.0</version>
130            <scope>test</scope>
131            <exclusions>
132                <exclusion>
133                    <artifactId>junit-dep</artifactId>
134                    <groupId>junit</groupId>
135                </exclusion>
136            </exclusions>
137        </dependency>
138        <dependency>
139            <groupId>com.google.guava</groupId>
140            <artifactId>guava</artifactId>
141            <version>16.0.1</version>
142        </dependency>
143        <dependency>
144            <groupId>net.sf.saxon</groupId>
145            <artifactId>Saxon-HE</artifactId>
146            <version>9.5.1-4</version>
147            <type>jar</type>
148        </dependency>
149        <dependency>
150            <groupId>org.apache.commons</groupId>
151            <artifactId>commons-lang3</artifactId>
152            <version>3.3</version>
153            <scope>test</scope>
154            <type>jar</type>
155        </dependency>
156    </dependencies>
157   
158    <build>
159        <resources>
160            <resource>
161                <filtering>true</filtering>
162                <directory>src/main/resources</directory>
163            </resource>
164            <resource>
165                <filtering>false</filtering>
166                <directory>src/main/java</directory>
167                <includes>
168                    <include>**</include>
169                </includes>
170                <excludes>
171                    <exclude>**/*.java</exclude>
172                </excludes>
173            </resource>
174        </resources>
175        <testResources>
176            <testResource>
177                <filtering>false</filtering>
178                <directory>src/test/resources</directory>
179            </testResource>
180            <testResource>
181                <filtering>false</filtering>
182                <directory>src/test/java</directory>
183                <includes>
184                    <include>**</include>
185                </includes>
186                <excludes>
187                    <exclude>**/*.java</exclude>
188                </excludes>
189            </testResource>
190        </testResources>
191        <plugins>
192            <plugin>
193                <inherited>true</inherited>
194                <groupId>org.apache.maven.plugins</groupId>
195                <artifactId>maven-compiler-plugin</artifactId>
196                <version>2.5.1</version>
197                <configuration>
198                    <source>1.6</source>
199                    <target>1.6</target>
200                    <encoding>UTF-8</encoding>
201                    <showWarnings>true</showWarnings>
202                    <showDeprecation>true</showDeprecation>
203                </configuration>
204            </plugin>
205            <plugin>
206                <groupId>org.mortbay.jetty</groupId>
207                <artifactId>jetty-maven-plugin</artifactId>
208                <version>${jetty.version}</version>
209                <configuration>
210                    <connectors>
211                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
212                            <port>8080</port>
213                            <maxIdleTime>3600000</maxIdleTime>
214                        </connector>
215                        <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
216                            <port>8443</port>
217                            <maxIdleTime>3600000</maxIdleTime>
218                            <keystore>${project.build.directory}/test-classes/keystore</keystore>
219                            <password>wicket</password>
220                            <keyPassword>wicket</keyPassword>
221                        </connector>
222                    </connectors>
223                </configuration>
224            </plugin>
225            <plugin>
226                <artifactId>maven-assembly-plugin</artifactId>
227                <version>2.3</version>
228                <configuration>
229                    <descriptors>
230                        <descriptor>src/main/assembly/buildwar.xml</descriptor>
231                    </descriptors>
232                </configuration>
233                <executions>
234                    <execution>
235                        <id>make-assemblyJ</id>
236                        <phase>package</phase>
237                        <goals>
238                            <goal>single</goal>
239                        </goals>
240                    </execution>
241                </executions>
242            </plugin>
243            <plugin>
244                <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
245                <artifactId>svn-revision-number-maven-plugin</artifactId>
246                <version>1.13</version> <!-- please use the latest version -->
247                <executions>
248                    <execution>
249                        <goals>
250                            <goal>revision</goal>
251                        </goals>
252                    </execution>
253                </executions>
254                <configuration>
255                    <entries>
256                        <entry>
257                            <path>${project.basedir}</path>
258                            <prefix>vlo</prefix>
259                            <depth>infinity</depth>
260                            <reportUnversioned>true</reportUnversioned>
261                            <reportIgnored>false</reportIgnored>
262                            <reportOutOfDate>false</reportOutOfDate>
263                        </entry>
264                    </entries>
265                </configuration>
266            </plugin>
267        </plugins>
268    </build>
269   
270    <profiles>
271        <profile>
272            <id>development</id>
273            <properties>
274                <!-- selects the appender for the log4j root logger -->
275                <log4j.appender>Console</log4j.appender>
276                <vlo.logging.level>DEBUG</vlo.logging.level>
277            </properties>
278        </profile>
279    </profiles>
280   
281    <reporting>
282        <plugins>
283            <plugin>
284                <groupId>org.codehaus.mojo</groupId>
285                <artifactId>cobertura-maven-plugin</artifactId>
286                <version>2.6</version>
287            </plugin>
288        </plugins>
289    </reporting>
290   
291    <repositories>
292        <repository>
293            <id>Apache Nexus</id>
294            <url>https://repository.apache.org/content/repositories/snapshots/</url>
295            <releases>
296                <enabled>false</enabled>
297            </releases>
298            <snapshots>
299                <enabled>true</enabled>
300            </snapshots>
301        </repository>
302    </repositories>
303</project>
Note: See TracBrowser for help on using the repository browser.