1 | |
---|
2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
---|
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
---|
5 | <modelVersion>4.0.0</modelVersion> |
---|
6 | <parent> |
---|
7 | <groupId>clarin.cmdi</groupId> |
---|
8 | <artifactId>componentRegistry.parent</artifactId> |
---|
9 | <version>1.0</version> |
---|
10 | </parent> |
---|
11 | <groupId>clarin.cmdi</groupId> |
---|
12 | <artifactId>ComponentRegistry</artifactId> |
---|
13 | <packaging>${packaging}</packaging> |
---|
14 | <version>${ComponentRegistry.version}</version> |
---|
15 | <name>ComponentRegistry</name> |
---|
16 | <description> |
---|
17 | ComponentRegistry is part of the clarin metadata infrastructure (cmdi). |
---|
18 | The goal of the ComponentRegistry will be to register and make searchable Metadata Components and Profiles. |
---|
19 | </description> |
---|
20 | <ciManagement> |
---|
21 | <system>hudson</system> |
---|
22 | <url>http://lux16.mpi.nl/jenkins/job/ComponentRegistry/</url> |
---|
23 | </ciManagement> |
---|
24 | <scm> |
---|
25 | <connection>scm:svn:http://svn.clarin.eu/ComponentRegistry/trunk/ComponentRegistry</connection> |
---|
26 | <developerConnection>scm:svn:http://svn.clarin.eu/ComponentRegistry/trunk/ComponentRegistry</developerConnection> |
---|
27 | <url>http://trac.clarin.eu/browser/ComponentRegistry</url> |
---|
28 | </scm> |
---|
29 | |
---|
30 | <dependencies> |
---|
31 | <dependency> |
---|
32 | <groupId>junit</groupId> |
---|
33 | <artifactId>junit</artifactId> |
---|
34 | <version>4.11</version> |
---|
35 | <scope>test</scope> |
---|
36 | </dependency> |
---|
37 | <dependency> |
---|
38 | <groupId>net.sf.saxon</groupId> |
---|
39 | <artifactId>Saxon-HE</artifactId> |
---|
40 | <version>9.4</version> |
---|
41 | </dependency> |
---|
42 | <dependency> |
---|
43 | <groupId>javax.servlet</groupId> |
---|
44 | <artifactId>servlet-api</artifactId> |
---|
45 | <version>2.5</version> |
---|
46 | <scope>provided</scope> |
---|
47 | </dependency> |
---|
48 | <dependency> |
---|
49 | <groupId>commons-codec</groupId> |
---|
50 | <artifactId>commons-codec</artifactId> |
---|
51 | <version>1.3</version> |
---|
52 | </dependency> |
---|
53 | <dependency> |
---|
54 | <groupId>commons-io</groupId> |
---|
55 | <artifactId>commons-io</artifactId> |
---|
56 | <version>1.4</version> |
---|
57 | </dependency> |
---|
58 | <dependency> |
---|
59 | <groupId>commons-lang</groupId> |
---|
60 | <artifactId>commons-lang</artifactId> |
---|
61 | <version>2.5</version> |
---|
62 | </dependency> |
---|
63 | <dependency> |
---|
64 | <groupId>commons-fileupload</groupId> |
---|
65 | <artifactId>commons-fileupload</artifactId> |
---|
66 | <version>1.2.1</version> |
---|
67 | </dependency> |
---|
68 | <dependency> |
---|
69 | <groupId>commons-collections</groupId> |
---|
70 | <artifactId>commons-collections</artifactId> |
---|
71 | <version>3.2.1</version> |
---|
72 | </dependency> |
---|
73 | <dependency> |
---|
74 | <groupId>xml-resolver</groupId> |
---|
75 | <artifactId>xml-resolver</artifactId> |
---|
76 | <version>1.2</version> |
---|
77 | </dependency> |
---|
78 | <dependency> |
---|
79 | <groupId>org.slf4j</groupId> |
---|
80 | <artifactId>slf4j-log4j12</artifactId> |
---|
81 | <version>1.7.2</version> |
---|
82 | </dependency> |
---|
83 | <dependency> |
---|
84 | <groupId>org.slf4j</groupId> |
---|
85 | <artifactId>jcl-over-slf4j</artifactId> |
---|
86 | <version>1.7.2</version> |
---|
87 | </dependency> |
---|
88 | <dependency> |
---|
89 | <groupId>com.sun.jersey.contribs</groupId> |
---|
90 | <artifactId>jersey-multipart</artifactId> |
---|
91 | <version>1.12</version> |
---|
92 | </dependency> |
---|
93 | <dependency> |
---|
94 | <groupId>com.sun.jersey</groupId> |
---|
95 | <artifactId>jersey-bundle</artifactId> |
---|
96 | <version>1.12</version> |
---|
97 | <exclusions> |
---|
98 | <!-- |
---|
99 | Jersey has dependencies with different group ids therefore maven cannot resolve the conflict and gives me both |
---|
100 | jars (two of stax and two of jaxb-impl). Excluding them manually to overcome the problem |
---|
101 | --> |
---|
102 | <exclusion> |
---|
103 | <groupId>stax</groupId> |
---|
104 | <artifactId>stax-api</artifactId> |
---|
105 | </exclusion> |
---|
106 | </exclusions> |
---|
107 | </dependency> |
---|
108 | <dependency> |
---|
109 | <groupId>com.sun.jersey.jersey-test-framework</groupId> |
---|
110 | <artifactId>jersey-test-framework-grizzly</artifactId> |
---|
111 | <version>1.12</version> |
---|
112 | <scope>test</scope> |
---|
113 | </dependency> |
---|
114 | <dependency> |
---|
115 | <groupId>com.sun.grizzly</groupId> |
---|
116 | <artifactId>grizzly-servlet-webserver</artifactId> |
---|
117 | <version>1.9.19</version> |
---|
118 | <scope>test</scope> |
---|
119 | </dependency> |
---|
120 | <dependency> |
---|
121 | <groupId>com.sun.xml.stream</groupId> |
---|
122 | <artifactId>sjsxp</artifactId> |
---|
123 | <version>1.0.1</version> |
---|
124 | </dependency> |
---|
125 | <dependency> |
---|
126 | <groupId>de.mpg.mpgaai</groupId> |
---|
127 | <artifactId>mpgaai-jaas</artifactId> |
---|
128 | <version>1.3.2</version> |
---|
129 | <exclusions> |
---|
130 | <exclusion> |
---|
131 | <groupId>commons-logging</groupId> |
---|
132 | <artifactId>commons-logging</artifactId> |
---|
133 | </exclusion> |
---|
134 | </exclusions> |
---|
135 | </dependency> |
---|
136 | <dependency> |
---|
137 | <groupId>de.mpg.mpgaai</groupId> |
---|
138 | <artifactId>mpgaai-shhaa</artifactId> |
---|
139 | <version>1.0.2</version> |
---|
140 | <exclusions> |
---|
141 | <exclusion> |
---|
142 | <groupId>commons-logging</groupId> |
---|
143 | <artifactId>commons-logging</artifactId> |
---|
144 | </exclusion> |
---|
145 | </exclusions> |
---|
146 | </dependency> |
---|
147 | <dependency> |
---|
148 | <groupId>org.apache.wicket</groupId> |
---|
149 | <artifactId>wicket</artifactId> |
---|
150 | <version>1.4.8</version> |
---|
151 | </dependency> |
---|
152 | <dependency> |
---|
153 | <groupId>org.apache.wicket</groupId> |
---|
154 | <artifactId>wicket-extensions</artifactId> |
---|
155 | <version>1.4.8</version> |
---|
156 | </dependency> |
---|
157 | |
---|
158 | <!-- Spring framework --> |
---|
159 | |
---|
160 | <dependency> |
---|
161 | <groupId>org.apache.wicket</groupId> |
---|
162 | <artifactId>wicket-spring</artifactId> |
---|
163 | <version>1.4.8</version> |
---|
164 | <exclusions> |
---|
165 | <exclusion> |
---|
166 | <groupId>org.springframework</groupId> |
---|
167 | <artifactId>spring</artifactId> |
---|
168 | </exclusion> |
---|
169 | </exclusions> |
---|
170 | </dependency> |
---|
171 | <dependency> |
---|
172 | <groupId>com.sun.jersey.contribs</groupId> |
---|
173 | <artifactId>jersey-spring</artifactId> |
---|
174 | <version>1.12</version> |
---|
175 | <exclusions> |
---|
176 | <exclusion> |
---|
177 | <groupId>commons-logging</groupId> |
---|
178 | <artifactId>commons-logging</artifactId> |
---|
179 | </exclusion> |
---|
180 | </exclusions> |
---|
181 | </dependency> |
---|
182 | <dependency> |
---|
183 | <groupId>org.springframework</groupId> |
---|
184 | <artifactId>spring-tx</artifactId> |
---|
185 | <version>3.0.0.RELEASE</version> |
---|
186 | </dependency> |
---|
187 | <dependency> |
---|
188 | <groupId>org.springframework</groupId> |
---|
189 | <artifactId>spring-jdbc</artifactId> |
---|
190 | <version>3.0.0.RELEASE</version> |
---|
191 | </dependency> |
---|
192 | <dependency> |
---|
193 | <groupId>org.springframework</groupId> |
---|
194 | <artifactId>spring-test</artifactId> |
---|
195 | <version>3.0.0.RELEASE</version> |
---|
196 | <scope>test</scope> |
---|
197 | </dependency> |
---|
198 | |
---|
199 | <!-- Database --> |
---|
200 | |
---|
201 | <dependency> |
---|
202 | <groupId>commons-dbcp</groupId> |
---|
203 | <artifactId>commons-dbcp</artifactId> |
---|
204 | <version>1.4</version> |
---|
205 | </dependency> |
---|
206 | <dependency> |
---|
207 | <groupId>postgresql</groupId> |
---|
208 | <artifactId>postgresql</artifactId> |
---|
209 | <version>8.4-701.jdbc3</version> |
---|
210 | </dependency> |
---|
211 | <dependency> |
---|
212 | <groupId>hsqldb</groupId> |
---|
213 | <artifactId>hsqldb</artifactId> |
---|
214 | <version>1.8.0.10</version> |
---|
215 | <scope>test</scope> |
---|
216 | </dependency> |
---|
217 | <dependency> |
---|
218 | <groupId>clarin.cmdi</groupId> |
---|
219 | <artifactId>cmd-validate</artifactId> |
---|
220 | <version>1.1</version> |
---|
221 | </dependency> |
---|
222 | <dependency> |
---|
223 | <groupId>org.slf4j</groupId> |
---|
224 | <artifactId>jul-to-slf4j</artifactId> |
---|
225 | <version>1.7.2</version> |
---|
226 | </dependency> |
---|
227 | </dependencies> |
---|
228 | |
---|
229 | <properties> |
---|
230 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
---|
231 | <packaging>war</packaging> |
---|
232 | <!-- Properties to configure ComponentRegistry override on commandline with -D or change here --> |
---|
233 | <serviceRootUrl>http://localhost:8080/${project.artifactId}</serviceRootUrl> |
---|
234 | <!-- Will be inserted in context.xml --> |
---|
235 | <webXmlPath>src/main/webapp/WEB-INF/web.xml</webXmlPath> |
---|
236 | <!-- non-shib web.xml --> |
---|
237 | <isocatSearchUrl>http://www.isocat.org/rest/user/guest/search</isocatSearchUrl> |
---|
238 | <ComponentRegistrySwfName>${project.artifactId}-${ComponentBrowserGui.version}</ComponentRegistrySwfName> |
---|
239 | <flexDebug>0</flexDebug> |
---|
240 | <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server> |
---|
241 | </properties> |
---|
242 | |
---|
243 | <profiles> |
---|
244 | <profile> |
---|
245 | <id>lux16</id> |
---|
246 | <properties> |
---|
247 | <serviceRootUrl>http://lux16.mpi.nl/ds/ComponentRegistry</serviceRootUrl> |
---|
248 | <!-- Will be inserted in context.xml --> |
---|
249 | <shibLI>http://lux16.mpi.nl/Shibboleth.sso/DS</shibLI> |
---|
250 | <!-- Shibboleth login URI for SHHAA --> |
---|
251 | <shibLO>http://lux16.mpi.nl/Shibboleth.sso/Logout</shibLO> |
---|
252 | <!-- Shibboleth logout URI for SHHAA --> |
---|
253 | <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath> |
---|
254 | <!-- web.xml for shibboleth authentication --> |
---|
255 | </properties> |
---|
256 | </profile> |
---|
257 | <profile> |
---|
258 | <id>clarin</id> |
---|
259 | <properties> |
---|
260 | <serviceRootUrl>http://catalog.clarin.eu/ds/ComponentRegistry</serviceRootUrl> |
---|
261 | <!-- Will be inserted in context.xml --> |
---|
262 | <shibLI>https://catalog.clarin.eu/Shibboleth.sso/DiscoJuice</shibLI> |
---|
263 | <!-- Shibboleth login URI for SHHAA --> |
---|
264 | <shibLO>https://catalog.clarin.eu/Shibboleth.sso/Logout</shibLO> |
---|
265 | <!-- Shibboleth logout URI for SHHAA --> |
---|
266 | <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath> |
---|
267 | <!-- web.xml for shibboleth authentication --> |
---|
268 | </properties> |
---|
269 | </profile> |
---|
270 | </profiles> |
---|
271 | |
---|
272 | <build> |
---|
273 | <filters> |
---|
274 | <filter>properties/flexindex.properties</filter> |
---|
275 | </filters> |
---|
276 | <resources> |
---|
277 | <resource> |
---|
278 | <filtering>false</filtering> |
---|
279 | <directory>src/generated/jaxb/components</directory> |
---|
280 | </resource> |
---|
281 | <resource> |
---|
282 | <filtering>false</filtering> |
---|
283 | <directory>src/generated/jaxb/rss</directory> |
---|
284 | </resource> |
---|
285 | <resource> |
---|
286 | <filtering>true</filtering> |
---|
287 | <directory>src/main/resources</directory> |
---|
288 | </resource> |
---|
289 | <resource> |
---|
290 | <filtering>false</filtering> |
---|
291 | <directory>src/main/java</directory> |
---|
292 | <includes> |
---|
293 | <include>**/*.html</include> |
---|
294 | </includes> |
---|
295 | </resource> |
---|
296 | </resources> |
---|
297 | <testResources> |
---|
298 | <testResource> |
---|
299 | <directory>src/test/resources</directory> |
---|
300 | </testResource> |
---|
301 | </testResources> |
---|
302 | <plugins> |
---|
303 | <plugin> |
---|
304 | <groupId>org.apache.maven.plugins</groupId> |
---|
305 | <artifactId>maven-compiler-plugin</artifactId> |
---|
306 | <configuration> |
---|
307 | <source>1.6</source> |
---|
308 | <target>1.6</target> |
---|
309 | </configuration> |
---|
310 | </plugin> |
---|
311 | <plugin> |
---|
312 | <groupId>org.apache.maven.plugins</groupId> |
---|
313 | <artifactId>maven-war-plugin</artifactId> |
---|
314 | <configuration> |
---|
315 | <warName>${project.artifactId}</warName> |
---|
316 | <webXml>${webXmlPath}</webXml> |
---|
317 | <webResources> |
---|
318 | <resource> |
---|
319 | <directory>src/main/webapp</directory> |
---|
320 | <filtering>true</filtering> |
---|
321 | </resource> |
---|
322 | </webResources> |
---|
323 | <archive> |
---|
324 | <manifest> |
---|
325 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
---|
326 | </manifest> |
---|
327 | </archive> |
---|
328 | </configuration> |
---|
329 | </plugin> |
---|
330 | <plugin> |
---|
331 | <groupId>org.jvnet.jaxb2.maven2</groupId> |
---|
332 | <artifactId>maven-jaxb2-plugin</artifactId> |
---|
333 | <executions> |
---|
334 | <execution> |
---|
335 | <id>jaxb-components</id> |
---|
336 | <goals> |
---|
337 | <goal>generate</goal> |
---|
338 | </goals> |
---|
339 | <configuration> |
---|
340 | <schemaDirectory>src/main/binding/components</schemaDirectory> |
---|
341 | <schemaIncludes> |
---|
342 | <include>general-component-schema.xsd</include> |
---|
343 | </schemaIncludes> |
---|
344 | <bindingDirectory>src/main/binding/components</bindingDirectory> |
---|
345 | <extension>true</extension> |
---|
346 | <generateDirectory>${basedir}/src/generated/jaxb/components</generateDirectory> |
---|
347 | <generatePackage>clarin.cmdi.componentregistry.components</generatePackage> |
---|
348 | <catalog>src/main/resources/catalog.cat</catalog> |
---|
349 | <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver> |
---|
350 | </configuration> |
---|
351 | </execution> |
---|
352 | <execution> |
---|
353 | <id>jaxb-rrs</id> |
---|
354 | <goals> |
---|
355 | <goal>generate</goal> |
---|
356 | </goals> |
---|
357 | <configuration> |
---|
358 | <schemaDirectory>src/main/binding/rss</schemaDirectory> |
---|
359 | <schemaIncludes> |
---|
360 | <include>rss-2_0.xsd</include> |
---|
361 | </schemaIncludes> |
---|
362 | <bindingDirectory>src/main/binding/rss</bindingDirectory> |
---|
363 | <extension>true</extension> |
---|
364 | <generateDirectory>${basedir}/src/generated/jaxb/rss</generateDirectory> |
---|
365 | <generatePackage>clarin.cmdi.componentregistry.rss</generatePackage> |
---|
366 | <catalog>src/main/resources/catalog.cat</catalog> |
---|
367 | <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver> |
---|
368 | </configuration> |
---|
369 | </execution> |
---|
370 | </executions> |
---|
371 | </plugin> |
---|
372 | <plugin> |
---|
373 | <groupId>org.apache.maven.plugins</groupId> |
---|
374 | <artifactId>maven-dependency-plugin</artifactId> |
---|
375 | <executions> |
---|
376 | <execution> |
---|
377 | <id>copy</id> |
---|
378 | <phase>process-resources</phase> |
---|
379 | <goals> |
---|
380 | <goal>copy</goal> |
---|
381 | </goals> |
---|
382 | <configuration> |
---|
383 | <artifactItems> |
---|
384 | <artifactItem> |
---|
385 | <groupId>clarin.cmdi</groupId> |
---|
386 | <artifactId>ComponentBrowserGui</artifactId> |
---|
387 | <version>${ComponentBrowserGui.version}</version> |
---|
388 | <type>swf</type> |
---|
389 | <overWrite>true</overWrite> |
---|
390 | <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory> |
---|
391 | <destFileName>${ComponentRegistrySwfName}.swf</destFileName> |
---|
392 | </artifactItem> |
---|
393 | </artifactItems> |
---|
394 | </configuration> |
---|
395 | </execution> |
---|
396 | </executions> |
---|
397 | </plugin> |
---|
398 | <plugin> |
---|
399 | <artifactId>maven-assembly-plugin</artifactId> |
---|
400 | <version>2.2.2</version> |
---|
401 | <executions> |
---|
402 | <execution> |
---|
403 | <id>make-assembly</id> |
---|
404 | <phase>package</phase> |
---|
405 | <goals> |
---|
406 | <goal>single</goal> |
---|
407 | </goals> |
---|
408 | <configuration> |
---|
409 | <descriptors> |
---|
410 | <descriptor>src/main/assembly/release.xml</descriptor> |
---|
411 | </descriptors> |
---|
412 | </configuration> |
---|
413 | </execution> |
---|
414 | </executions> |
---|
415 | </plugin> |
---|
416 | <plugin> |
---|
417 | <groupId>org.apache.maven.plugins</groupId> |
---|
418 | <artifactId>maven-surefire-plugin</artifactId> |
---|
419 | <version>2.13</version> |
---|
420 | <configuration> |
---|
421 | <systemProperties> |
---|
422 | <property> |
---|
423 | <name>java.util.logging.config.file</name> |
---|
424 | <value>${project.build.directory}/classes/logging.properties</value> |
---|
425 | </property> |
---|
426 | </systemProperties> |
---|
427 | </configuration> |
---|
428 | </plugin> |
---|
429 | |
---|
430 | </plugins> |
---|
431 | </build> |
---|
432 | |
---|
433 | <reporting> |
---|
434 | <plugins> |
---|
435 | <plugin> |
---|
436 | <groupId>org.codehaus.mojo</groupId> |
---|
437 | <artifactId>findbugs-maven-plugin</artifactId> |
---|
438 | <configuration> |
---|
439 | <excludeFilterFile>${basedir}/src/main/resources/findbugs-exclude.xml</excludeFilterFile> |
---|
440 | <threshold>Normal</threshold> |
---|
441 | <effort>Min</effort> |
---|
442 | </configuration> |
---|
443 | </plugin> |
---|
444 | </plugins> |
---|
445 | </reporting> |
---|
446 | |
---|
447 | <repositories> |
---|
448 | <repository> |
---|
449 | <id>cmdi.clarin.repository</id> |
---|
450 | <name>Clarin Repository</name> |
---|
451 | <url>http://catalog.clarin.eu/ds/nexus/content/groups/public/</url> |
---|
452 | </repository> |
---|
453 | <repository> |
---|
454 | <id>sonatype</id> |
---|
455 | <url>https://oss.sonatype.org/content/groups/public</url> |
---|
456 | </repository> |
---|
457 | </repositories> |
---|
458 | </project> |
---|