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

Last change on this file since 4229 was 4229, checked in by twagoo, 10 years ago

Fixed images resources: moved them into src/main/resources - which is now also picked up by maven, and use package resource mechanism of wicket to refer to them (shortcut via Image constructor)

File size: 8.5 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-extensions</artifactId>
29            <version>6.12.0</version>
30            <type>jar</type>
31        </dependency>
32        <dependency>
33            <groupId>com.55minutes</groupId>
34            <artifactId>fiftyfive-wicket-core</artifactId>
35            <version>4.0</version>
36            <exclusions>
37                <exclusion>
38                    <artifactId>wicket</artifactId>
39                    <groupId>org.apache.wicket</groupId>
40                </exclusion>
41            </exclusions>
42        </dependency>
43        <dependency>
44            <groupId>org.mortbay.jetty</groupId>
45            <artifactId>jetty</artifactId>
46            <version>6.1.4</version>
47            <scope>test</scope>
48        </dependency>
49        <dependency>
50            <groupId>eu.clarin.cmdi</groupId>
51            <artifactId>vlo_importer</artifactId>
52            <version>2.18</version>
53            <type>jar</type>
54        </dependency>
55        <dependency>
56            <groupId>javax</groupId>
57            <artifactId>javaee-web-api</artifactId>
58            <version>6.0</version>
59            <scope>provided</scope>
60        </dependency>
61        <dependency>
62            <groupId>junit</groupId>
63            <artifactId>junit</artifactId>
64            <version>4.10</version>
65            <scope>test</scope>
66            <type>jar</type>
67        </dependency>
68
69    </dependencies>
70
71    <build>
72        <resources>
73            <resource>
74                <directory>src/main/java</directory>
75                <excludes>
76                    <!-- Exclude java source files because they are not needed
77                    in the archive. -->
78                    <exclude>**/*.java</exclude>
79                </excludes>
80            </resource>
81            <resource>
82                <directory>src/main/resources</directory>
83                <filtering>true</filtering>
84            </resource>
85            <resource>
86                <!-- Include vlo importer resources in the WEB-INF/classes
87                     directory. Including a source is not the same thing as
88                     depending on it. When you depend on a source, it only needs
89                     to be in the location specified, it
90                     will not be included however.
91                -->
92                <directory>../vlo_importer/src/main/resources</directory>
93                <includes>
94                    <include>cmdi2xhtml.xsl</include>
95                </includes>                   
96            </resource>
97        </resources>
98
99        <plugins>
100            <plugin>
101                <groupId>org.apache.maven.plugins</groupId>
102                <artifactId>maven-compiler-plugin</artifactId>
103                <version>2.3.2</version>
104                <configuration>
105                    <source>1.6</source>
106                    <target>1.6</target>
107                    <compilerArguments>
108                        <endorseddirs>${endorsed.dir}</endorseddirs>
109                    </compilerArguments>
110                </configuration>
111            </plugin>
112           
113            <plugin>
114                <!-- Add the remote resources plugin to let de web application
115                     depend on the cmdi2xhtml.xml file from the vlo_importer
116                     module. For more information on this plugin, please refer
117                     the Apache Maven Project website
118                -->
119                <groupId>org.apache.maven.plugins</groupId>
120                <artifactId>maven-remote-resources-plugin</artifactId>
121                <version>1.4</version>
122                <configuration>
123                    <resourceBundles>
124                        <resourceBundle>eu.clarin.cmdi:vlo_importer:${project.version}</resourceBundle>
125                    </resourceBundles>
126                </configuration>
127                <executions>
128                    <execution>
129                        <goals>
130                            <goal>process</goal>
131                        </goals>
132                    </execution>
133                </executions>
134            </plugin>
135
136            <plugin>
137                <groupId>org.apache.maven.plugins</groupId>
138                <artifactId>maven-war-plugin</artifactId>
139                <version>2.1.1</version>
140                <configuration>
141                    <failOnMissingWebXml>false</failOnMissingWebXml>
142                   
143                    <!-- Add the cmdi2xhtml file from the vlo_importer module
144                         to the web application archive file. Please note that
145                         because of this the archive the file it is in will be
146                         included in its entirety. Please note that the file
147                         will not show up in the web application module in the
148                         Netbeans IDE.
149                    -->
150                   
151                    <srcFiles>
152                        <srcFile>${project.build.directory}/src/main/resources/cmdi2xhtml.xsl</srcFile>
153                    </srcFiles>
154                </configuration>
155            </plugin>
156           
157            <plugin>
158                <groupId>org.apache.maven.plugins</groupId>
159                <artifactId>maven-dependency-plugin</artifactId>
160                <version>2.1</version>
161                <executions>
162                    <execution>
163                        <phase>validate</phase>
164                        <goals>
165                            <goal>copy</goal>
166                        </goals>
167                        <configuration>
168                            <outputDirectory>${endorsed.dir}</outputDirectory>
169                            <silent>true</silent>
170                            <artifactItems>
171                                <artifactItem>
172                                    <groupId>javax</groupId>
173                                    <artifactId>javaee-endorsed-api</artifactId>
174                                    <version>6.0</version>
175                                    <type>jar</type>
176                                </artifactItem>
177                            </artifactItems>
178                        </configuration>
179                    </execution>
180                </executions>
181            </plugin>
182           
183            <plugin>
184                <artifactId>maven-assembly-plugin</artifactId>
185                <version>2.3</version>
186                <configuration>
187                    <descriptors>
188                        <descriptor>src/main/assembly/buildwar.xml</descriptor>
189                    </descriptors>
190                </configuration>
191                <executions>
192                    <execution>
193                        <id>make-assemblyJ</id>
194                        <phase>package</phase>
195                        <goals>
196                            <goal>single</goal>
197                        </goals>
198                    </execution>
199                </executions>
200            </plugin>
201        </plugins>
202       
203    </build>
204   
205    <reporting>
206        <plugins>
207            <plugin>
208                <groupId>org.codehaus.mojo</groupId>
209                <artifactId>cobertura-maven-plugin</artifactId>
210                <version>2.6</version>
211            </plugin>
212        </plugins>
213    </reporting>
214   
215    <repositories>
216        <repository>
217            <id>MPI</id>
218            <name>MPI LAT Repository</name>
219            <url>http://lux15.mpi.nl/nexus/content/groups/public</url>
220        </repository>
221        <repository>
222            <id>55Minutes_wicket</id>
223            <name>55Minutes opensource wicket extensions</name>
224            <url>http://opensource.55minutes.com/maven/</url>
225        </repository>
226    </repositories>
227</project>
Note: See TracBrowser for help on using the repository browser.