source: vlo/trunk/vlo_web_app/pom.xml @ 4021

Last change on this file since 4021 was 4021, checked in by keeloo, 11 years ago

Work on the layout of the facetted search page

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