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

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

Repaired faulty build order

File size: 6.3 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.13</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.13</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</exclude> <!-- java not needed in the package -->
61                </excludes>
62            </resource>
63        </resources>
64
65        <plugins>
66            <plugin>
67                <groupId>org.apache.maven.plugins</groupId>
68                <artifactId>maven-compiler-plugin</artifactId>
69                <version>2.3.2</version>
70                <configuration>
71                    <source>1.6</source>
72                    <target>1.6</target>
73                    <compilerArguments>
74                        <endorseddirs>${endorsed.dir}</endorseddirs>
75                    </compilerArguments>
76                </configuration>
77            </plugin>
78           
79           
80            <plugin>
81                <!-- add the remote resources plugin to obtain the cmdi2xhtml.xml
82                     file from the vlo_importer module. For more information
83                     on this plugin, please refer the Apache Maven Project website
84                -->
85                <groupId>org.apache.maven.plugins</groupId>
86                <artifactId>maven-remote-resources-plugin</artifactId>
87                <version>1.4</version>
88                <configuration>
89                    <resourceBundles>
90                        <resourceBundle>eu.clarin.cmdi:vlo:${project.version}</resourceBundle>
91                    </resourceBundles>
92                </configuration>
93                <executions>
94                    <execution>
95                        <goals>
96                            <goal>process</goal>
97                        </goals>
98                    </execution>
99                </executions>
100            </plugin>
101
102            <plugin>
103                <groupId>org.apache.maven.plugins</groupId>
104                <artifactId>maven-war-plugin</artifactId>
105                <version>2.1.1</version>
106                <configuration>
107                    <failOnMissingWebXml>false</failOnMissingWebXml>
108                   
109                    <!-- Add the cmdi2xhtml file from the vlo_importer module
110                         to the web application archive file. Please note that
111                         the file will only be included in the archive: the file
112                         will not show up in the web application module in the
113                         Netbeans IDE.
114                    -->
115                   
116                    <srcFiles>
117                        <srcFile>${project.build.directory}/src/main/resources/cmdi2xhtml.xsl</srcFile>
118                    </srcFiles>
119                </configuration>
120            </plugin>
121           
122            <plugin>
123                <groupId>org.apache.maven.plugins</groupId>
124                <artifactId>maven-dependency-plugin</artifactId>
125                <version>2.1</version>
126                <executions>
127                    <execution>
128                        <phase>validate</phase>
129                        <goals>
130                            <goal>copy</goal>
131                        </goals>
132                        <configuration>
133                            <outputDirectory>${endorsed.dir}</outputDirectory>
134                            <silent>true</silent>
135                            <artifactItems>
136                                <artifactItem>
137                                    <groupId>javax</groupId>
138                                    <artifactId>javaee-endorsed-api</artifactId>
139                                    <version>6.0</version>
140                                    <type>jar</type>
141                                </artifactItem>
142                            </artifactItems>
143                        </configuration>
144                    </execution>
145                </executions>
146            </plugin>
147           
148            <plugin>
149                <artifactId>maven-assembly-plugin</artifactId>
150                <version>2.3</version>
151                <configuration>
152                    <descriptors>
153                        <descriptor>src/main/assembly/buildwar.xml</descriptor>
154                    </descriptors>
155                </configuration>
156                <executions>
157                    <execution>
158                        <id>make-assemblyJ</id>
159                        <phase>package</phase>
160                        <goals>
161                            <goal>single</goal>
162                        </goals>
163                    </execution>
164                </executions>
165            </plugin>
166        </plugins>
167       
168    </build>
169</project>
Note: See TracBrowser for help on using the repository browser.