source: vlo/branches/to-wicket-1.6/vlo_web_app/pom.xml @ 4208

Last change on this file since 4208 was 4208, checked in by keeloo, 10 years ago

Finished the upgrade. The web application still needs to be tested.

File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<project xmlns="http://maven.apache.org/POM/4.0.0" 
4         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
5         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
6>
7   
8    <modelVersion>4.0.0</modelVersion>
9
10    <groupId>eu.clarin.cmdi</groupId>
11   
12    <artifactId>vlo_web_app</artifactId>
13   
14    <version>2.18</version>
15   
16    <packaging>war</packaging>
17
18    <name>vlo_web_app</name>
19
20    <properties>
21        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
22        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23    </properties>
24
25    <dependencies>
26        <dependency>
27            <groupId>org.apache.wicket</groupId>
28            <artifactId>wicket-core</artifactId>
29            <version>6.12.0</version>
30        </dependency>
31        <dependency>
32            <groupId>org.apache.wicket</groupId>
33            <artifactId>wicket-extensions</artifactId>
34            <version>6.8.0</version>
35            <type>jar</type>
36        </dependency>
37        <dependency>
38            <groupId>org.mortbay.jetty</groupId>
39            <artifactId>jetty</artifactId>
40            <version>6.1.4</version>
41            <scope>test</scope>
42        </dependency>
43        <dependency>
44            <groupId>eu.clarin.cmdi</groupId>
45            <artifactId>vlo_importer</artifactId>
46            <version>2.18</version>
47            <type>jar</type>
48        </dependency>
49        <dependency>
50            <groupId>javax</groupId>
51            <artifactId>javaee-web-api</artifactId>
52            <version>6.0</version>
53            <scope>provided</scope>
54        </dependency>
55        <dependency>
56            <groupId>junit</groupId>
57            <artifactId>junit</artifactId>
58            <version>4.10</version>
59            <scope>test</scope>
60            <type>jar</type>
61        </dependency>
62
63    </dependencies>
64
65    <build>
66        <resources>
67            <resource>
68                <directory>src/main/java</directory>
69                <excludes>
70                    <!-- Exclude java source files because they are not needed
71                    in the archive. -->
72                    <exclude>**/*.java</exclude>
73                </excludes>
74            </resource>
75            <resource>
76                <!-- Include vlo importer resources in the WEB-INF/classes
77                     directory. Including a source is not the same thing as
78                     depending on it. When you depend on a source, it only needs
79                     to be in the location specified, it
80                     will not be included however.
81                -->
82                <directory>../vlo_importer/src/main/resources</directory>
83                <includes>
84                        <include>cmdi2xhtml.xsl</include>
85                </includes>                   
86            </resource>
87        </resources>
88
89        <plugins>
90            <plugin>
91                <groupId>org.apache.maven.plugins</groupId>
92                <artifactId>maven-compiler-plugin</artifactId>
93                <version>2.3.2</version>
94                <configuration>
95                    <source>1.6</source>
96                    <target>1.6</target>
97                    <compilerArguments>
98                        <endorseddirs>${endorsed.dir}</endorseddirs>
99                    </compilerArguments>
100                </configuration>
101            </plugin>
102           
103            <plugin>
104                <!-- Add the remote resources plugin to let de web application
105                     depend on the cmdi2xhtml.xml file from the vlo_importer
106                     module. For more information on this plugin, please refer
107                     the Apache Maven Project website
108                -->
109                <groupId>org.apache.maven.plugins</groupId>
110                <artifactId>maven-remote-resources-plugin</artifactId>
111                <version>1.4</version>
112                <configuration>
113                    <resourceBundles>
114                        <resourceBundle>eu.clarin.cmdi:vlo_importer:${project.version}</resourceBundle>
115                    </resourceBundles>
116                </configuration>
117                <executions>
118                    <execution>
119                        <goals>
120                            <goal>process</goal>
121                        </goals>
122                    </execution>
123                </executions>
124            </plugin>
125
126            <plugin>
127                <groupId>org.apache.maven.plugins</groupId>
128                <artifactId>maven-war-plugin</artifactId>
129                <version>2.1.1</version>
130                <configuration>
131                    <failOnMissingWebXml>false</failOnMissingWebXml>
132                   
133                    <!-- Add the cmdi2xhtml file from the vlo_importer module
134                         to the web application archive file. Please note that
135                         because of this the archive the file it is in will be
136                         included in its entirety. Please note that the file
137                         will not show up in the web application module in the
138                         Netbeans IDE.
139                    -->
140                   
141                    <srcFiles>
142                        <srcFile>${project.build.directory}/src/main/resources/cmdi2xhtml.xsl</srcFile>
143                    </srcFiles>
144                </configuration>
145            </plugin>
146           
147            <plugin>
148                <groupId>org.apache.maven.plugins</groupId>
149                <artifactId>maven-dependency-plugin</artifactId>
150                <version>2.1</version>
151                <executions>
152                    <execution>
153                        <phase>validate</phase>
154                        <goals>
155                            <goal>copy</goal>
156                        </goals>
157                        <configuration>
158                            <outputDirectory>${endorsed.dir}</outputDirectory>
159                            <silent>true</silent>
160                            <artifactItems>
161                                <artifactItem>
162                                    <groupId>javax</groupId>
163                                    <artifactId>javaee-endorsed-api</artifactId>
164                                    <version>6.0</version>
165                                    <type>jar</type>
166                                </artifactItem>
167                            </artifactItems>
168                        </configuration>
169                    </execution>
170                </executions>
171            </plugin>
172           
173            <plugin>
174                <artifactId>maven-assembly-plugin</artifactId>
175                <version>2.3</version>
176                <configuration>
177                    <descriptors>
178                        <descriptor>src/main/assembly/buildwar.xml</descriptor>
179                    </descriptors>
180                </configuration>
181                <executions>
182                    <execution>
183                        <id>make-assemblyJ</id>
184                        <phase>package</phase>
185                        <goals>
186                            <goal>single</goal>
187                        </goals>
188                    </execution>
189                </executions>
190            </plugin>
191        </plugins>
192       
193    </build>
194</project>
Note: See TracBrowser for help on using the repository browser.