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

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

This revision accompanies revision 2875; it includes the changes made to the web application.

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