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