source: ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/pom.xml @ 6883

Last change on this file since 6883 was 6883, checked in by Twan Goosen, 8 years ago

Refactoring in poms: version properties out of parent pom, REST project now defines its own version and has a property for front end version. Parent and project now also have the same version (explicitly defined in both poms).

File size: 22.6 KB
Line 
1
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4    <modelVersion>4.0.0</modelVersion>
5    <parent>
6        <groupId>eu.clarin.cmdi</groupId>
7        <artifactId>componentRegistry.parent</artifactId>
8        <version>1.0</version>
9    </parent>
10    <groupId>eu.clarin.cmdi</groupId>
11    <artifactId>component-registry-rest</artifactId>
12    <packaging>${packaging}</packaging>
13    <version>2.0-SNAPSHOT</version>
14    <name>ComponentRegistry</name>
15    <description>
16        ComponentRegistry is part of the clarin metadata infrastructure (cmdi).
17        The goal of the ComponentRegistry will be to register and make searchable Metadata Components and Profiles.
18    </description>
19
20    <properties>
21        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22        <packaging>war</packaging>
23        <frontEndVersion>1.0.0-beta</frontEndVersion>
24        <!-- Properties to configure ComponentRegistry override on commandline
25        with -D or change here -->
26        <serviceRootUrl>http://localhost:8080/${project.artifactId}</serviceRootUrl>
27        <!-- Will be inserted in context.xml -->
28        <webXmlPath>src/main/webapp/WEB-INF/web-test.xml</webXmlPath>
29        <!-- non-shib web.xml -->
30        <isocatSearchUrl>http://www.isocat.org/rest/user/guest/search</isocatSearchUrl>
31        <flexDebug>0</flexDebug>
32        <spring-data-jpa.version>1.3.4.RELEASE</spring-data-jpa.version>
33        <spring.version>3.2.10.RELEASE</spring.version>
34        <jackson.version>1.9.13</jackson.version>
35        <jersey.version>1.17.1</jersey.version>
36        <!-- hibernate.version>4.2.4.Final</hibernate.version -->
37        <hibernate.version>3.6.10.Final</hibernate.version>
38        <spring-data-jpa.version>1.3.4.RELEASE</spring-data-jpa.version>
39        <logging.appender>FILE</logging.appender>
40        <logging.level>warn</logging.level>
41    </properties>
42
43
44    <ciManagement>
45        <system>hudson</system>
46        <url>http://lux16.mpi.nl/jenkins/job/ComponentRegistry/</url>
47    </ciManagement>
48    <scm>
49        <connection>scm:svn:http://svn.clarin.eu/ComponentRegistry/trunk/ComponentRegistry</connection>
50        <developerConnection>scm:svn:http://svn.clarin.eu/ComponentRegistry/trunk/ComponentRegistry</developerConnection>
51        <url>http://trac.clarin.eu/browser/ComponentRegistry</url>
52    </scm>
53
54
55
56    <dependencies>
57        <dependency>
58            <groupId>org.springframework.data</groupId>
59            <artifactId>spring-data-jpa</artifactId>
60            <version>${spring-data-jpa.version}</version>
61        </dependency>
62        <dependency>
63            <groupId>org.hibernate</groupId>
64            <artifactId>hibernate-entitymanager</artifactId>
65            <version>${hibernate.version}</version>
66        </dependency>
67        <dependency>
68            <groupId>junit</groupId>
69            <artifactId>junit</artifactId>
70            <version>4.11</version>
71            <scope>test</scope>
72        </dependency>       
73        <dependency>
74            <groupId>javax.servlet</groupId>
75            <artifactId>servlet-api</artifactId>
76            <version>2.5</version>
77            <scope>provided</scope>
78        </dependency>
79        <dependency>
80            <groupId>commons-codec</groupId>
81            <artifactId>commons-codec</artifactId>
82            <version>1.3</version>
83        </dependency>
84        <dependency>
85            <groupId>commons-io</groupId>
86            <artifactId>commons-io</artifactId>
87            <version>1.4</version>
88        </dependency>
89        <dependency>
90            <groupId>commons-lang</groupId>
91            <artifactId>commons-lang</artifactId>
92            <version>2.5</version>
93        </dependency>
94        <dependency>
95            <groupId>commons-fileupload</groupId>
96            <artifactId>commons-fileupload</artifactId>
97            <version>1.2.1</version>
98        </dependency>
99        <dependency>
100            <groupId>commons-collections</groupId>
101            <artifactId>commons-collections</artifactId>
102            <version>3.2.1</version>
103        </dependency>
104        <dependency>
105            <groupId>xml-resolver</groupId>
106            <artifactId>xml-resolver</artifactId>
107            <version>1.2</version>
108        </dependency>
109        <dependency>
110            <groupId>org.slf4j</groupId>
111            <artifactId>slf4j-log4j12</artifactId>
112            <version>1.7.2</version>
113        </dependency>
114        <dependency>
115            <groupId>org.slf4j</groupId>
116            <artifactId>jcl-over-slf4j</artifactId>
117            <version>1.7.2</version>
118        </dependency>
119        <dependency>
120            <groupId>com.sun.jersey.contribs</groupId>
121            <artifactId>jersey-multipart</artifactId>
122            <version>${jersey.version}</version>
123        </dependency>
124        <dependency>
125            <groupId>org.codehaus.jackson</groupId>
126            <artifactId>jackson-core-asl</artifactId>
127            <version>${jackson.version}</version>
128        </dependency>
129        <dependency>
130            <groupId>com.sun.jersey</groupId>
131            <artifactId>jersey-bundle</artifactId>
132            <version>${jersey.version}</version>
133            <exclusions>
134                <!-- Jersey has dependencies with different group ids therefore maven
135                cannot resolve the conflict and gives me both jars (two of stax and two of
136                jaxb-impl). Excluding them manually to overcome the problem -->
137                <exclusion>
138                    <groupId>stax</groupId>
139                    <artifactId>stax-api</artifactId>
140                </exclusion>
141            </exclusions>
142        </dependency>
143        <dependency>
144            <groupId>com.sun.jersey.jersey-test-framework</groupId>
145            <artifactId>jersey-test-framework-grizzly</artifactId>
146            <version>${jersey.version}</version>
147            <scope>test</scope>
148        </dependency>
149        <dependency>
150            <groupId>com.wordnik</groupId>
151            <artifactId>swagger-jersey-jaxrs_2.10</artifactId>
152            <version>1.3.0</version>
153        </dependency>
154        <dependency>
155            <groupId>com.sun.grizzly</groupId>
156            <artifactId>grizzly-servlet-webserver</artifactId>
157            <version>1.9.19</version>
158            <scope>test</scope>
159        </dependency>
160        <dependency>
161            <groupId>xmlunit</groupId>
162            <artifactId>xmlunit</artifactId>
163            <version>1.5</version>
164            <scope>test</scope>
165        </dependency>
166        <dependency>
167            <groupId>com.sun.xml.stream</groupId>
168            <artifactId>sjsxp</artifactId>
169            <version>1.0.1</version>
170        </dependency>
171        <dependency>
172            <groupId>de.mpg.mpgaai</groupId>
173            <artifactId>mpgaai-jaas</artifactId>
174            <version>1.3.2</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>de.mpg.mpgaai</groupId>
184            <artifactId>mpgaai-shhaa</artifactId>
185            <version>1.0.6</version>
186            <exclusions>
187                <exclusion>
188                    <groupId>commons-logging</groupId>
189                    <artifactId>commons-logging</artifactId>
190                </exclusion>
191            </exclusions>
192        </dependency>
193        <dependency>
194            <groupId>org.apache.wicket</groupId>
195            <artifactId>wicket</artifactId>
196            <version>1.4.8</version>
197        </dependency>
198        <dependency>
199            <groupId>org.apache.wicket</groupId>
200            <artifactId>wicket-extensions</artifactId>
201            <version>1.4.8</version>
202        </dependency>
203        <dependency>
204            <groupId>javax.servlet</groupId>
205            <artifactId>jsp-api</artifactId>
206            <version>2.0</version>
207            <scope>provided</scope>
208        </dependency>
209
210        <!-- Spring framework -->
211
212        <dependency>
213            <groupId>org.springframework</groupId>
214            <artifactId>spring-webmvc</artifactId>
215            <version>${spring.version}</version>
216        </dependency>
217        <dependency>
218            <groupId>org.springframework</groupId>
219            <artifactId>spring-test</artifactId>
220            <version>${spring.version}</version>
221            <scope>test</scope>
222        </dependency>
223        <dependency>
224            <groupId>org.springframework</groupId>
225            <artifactId>spring-context</artifactId>
226            <version>${spring.version}</version>
227        </dependency>
228        <dependency>
229            <groupId>org.springframework.data</groupId>
230            <artifactId>spring-data-jpa</artifactId>
231            <version>${spring-data-jpa.version}</version>
232            <exclusions>
233                <exclusion>
234                    <artifactId>spring-aop</artifactId>
235                    <groupId>org.springframework</groupId>
236                </exclusion>
237                <exclusion>
238                    <artifactId>spring-core</artifactId>
239                    <groupId>org.springframework</groupId>
240                </exclusion>
241                <exclusion>
242                    <artifactId>spring-context</artifactId>
243                    <groupId>org.springframework</groupId>
244                </exclusion>
245                <exclusion>
246                    <artifactId>spring-beans</artifactId>
247                    <groupId>org.springframework</groupId>
248                </exclusion>
249            </exclusions>
250        </dependency>
251        <dependency>
252            <groupId>org.springframework</groupId>
253            <artifactId>spring-core</artifactId>
254            <version>${spring.version}</version>
255        </dependency>
256        <dependency>
257            <groupId>org.apache.wicket</groupId>
258            <artifactId>wicket-spring</artifactId>
259            <version>1.4.8</version>
260            <exclusions>
261                <exclusion>
262                    <groupId>org.springframework</groupId>
263                    <artifactId>spring</artifactId>
264                </exclusion>
265            </exclusions>
266        </dependency>
267        <dependency>
268            <groupId>com.sun.jersey.contribs</groupId>
269            <artifactId>jersey-spring</artifactId>
270            <version>${jersey.version}</version>
271            <exclusions>
272                <exclusion>
273                    <groupId>commons-logging</groupId>
274                    <artifactId>commons-logging</artifactId>
275                </exclusion>
276                <exclusion>
277                    <artifactId>spring-core</artifactId>
278                    <groupId>org.springframework</groupId>
279                </exclusion>
280                <exclusion>
281                    <artifactId>spring-aop</artifactId>
282                    <groupId>org.springframework</groupId>
283                </exclusion>
284                <exclusion>
285                    <artifactId>spring-context</artifactId>
286                    <groupId>org.springframework</groupId>
287                </exclusion>
288                <exclusion>
289                    <artifactId>spring-web</artifactId>
290                    <groupId>org.springframework</groupId>
291                </exclusion>
292                <exclusion>
293                    <artifactId>spring-beans</artifactId>
294                    <groupId>org.springframework</groupId>
295                </exclusion>
296            </exclusions>
297        </dependency>
298
299        <!-- Database -->
300
301        <dependency>
302            <groupId>commons-dbcp</groupId>
303            <artifactId>commons-dbcp</artifactId>
304            <version>1.4</version>
305        </dependency>
306        <dependency>
307            <groupId>postgresql</groupId>
308            <artifactId>postgresql</artifactId>
309            <version>9.1-901.jdbc3</version>
310            <scope>provided</scope>
311        </dependency>
312        <dependency>
313            <groupId>org.hsqldb</groupId>
314            <artifactId>hsqldb</artifactId>
315            <version>2.2.8</version>
316            <scope>test</scope>
317        </dependency>
318        <dependency>
319            <groupId>clarin.cmdi</groupId>
320            <artifactId>cmd-validate</artifactId>
321            <version>1.2</version>
322        </dependency>
323        <dependency>
324            <groupId>org.slf4j</groupId>
325            <artifactId>jul-to-slf4j</artifactId>
326            <version>1.7.2</version>
327        </dependency>
328        <dependency>
329            <groupId>com.google.guava</groupId>
330            <artifactId>guava</artifactId>
331            <version>16.0.1</version>
332        </dependency>
333        <dependency>
334            <groupId>org.json</groupId>
335            <artifactId>json</artifactId>
336            <version>20090211</version>
337        </dependency>
338    </dependencies>
339
340
341    <profiles>
342        <profile>
343            <!-- development profile that directs logging output to the console -->
344            <id>development</id>
345            <properties>
346                <logging.level>debug</logging.level>
347                <logging.appender>CONSOLE</logging.appender>
348                <serviceRootUrl>http://localhost:8080/ComponentRegistry</serviceRootUrl>
349                <!-- Will be inserted in context.xml -->
350                <shibLI>http://lux16.mpi.nl/Shibboleth.sso/Login</shibLI>
351                <!-- Shibboleth login URI for SHHAA -->
352                <shibLO>http://lux16.mpi.nl/Shibboleth.sso/Logout</shibLO>
353                <!-- Shibboleth logout URI for SHHAA -->
354                <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath>
355                <!-- web.xml for shibboleth authentication -->
356            </properties>
357        </profile>
358        <profile>
359            <id>lux16</id>
360            <properties>
361                <serviceRootUrl>http://lux16.mpi.nl/ds/ComponentRegistry</serviceRootUrl>
362                <!-- Will be inserted in context.xml -->
363                <shibLI>https://lux16.mpi.nl/Shibboleth.sso/Login</shibLI>
364                <!-- Shibboleth login URI for SHHAA -->
365                <shibLO>https://lux16.mpi.nl/Shibboleth.sso/Logout</shibLO>
366                <!-- Shibboleth logout URI for SHHAA -->
367                <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath>
368                <!-- web.xml for shibboleth authentication -->
369            </properties>
370        </profile>
371        <profile>
372            <id>clarin</id>
373            <properties>
374                <logging.level>warn</logging.level>
375                <serviceRootUrl>http://catalog.clarin.eu/ds/ComponentRegistry</serviceRootUrl>
376                <!-- Will be inserted in context.xml -->
377                <shibLI>https://catalog.clarin.eu/Shibboleth.sso/Login</shibLI>
378                <!-- Shibboleth login URI for SHHAA -->
379                <shibLO>https://catalog.clarin.eu/Shibboleth.sso/Logout</shibLO>
380                <!-- Shibboleth logout URI for SHHAA -->
381                <webXmlPath>src/main/webapp/WEB-INF/web-shib.xml</webXmlPath>
382                <!-- web.xml for shibboleth authentication -->
383            </properties>
384        </profile>
385    </profiles>
386
387    <build>
388        <filters>
389            <filter>properties/flexindex.properties</filter>
390        </filters>
391        <resources>
392            <resource>
393                <filtering>false</filtering>
394                <directory>src/generated/jaxb/components</directory>
395            </resource>
396            <resource>
397                <filtering>false</filtering>
398                <directory>src/generated/jaxb/rss</directory>
399            </resource>
400            <resource>
401                <filtering>true</filtering>
402                <directory>src/main/resources</directory>
403            </resource>
404            <resource>
405                <filtering>false</filtering>
406                <directory>src/main/java</directory>
407                <includes>
408                    <include>**/*.html</include>
409                </includes>
410            </resource>
411        </resources>
412        <testResources>
413            <testResource>
414                <directory>src/test/resources</directory>
415            </testResource>
416        </testResources>
417        <plugins>
418            <plugin>
419                <groupId>org.apache.maven.plugins</groupId>
420                <artifactId>maven-compiler-plugin</artifactId>
421                <configuration>
422                    <source>1.6</source>
423                    <target>1.6</target>
424                </configuration>
425            </plugin>
426            <plugin>
427                <groupId>org.apache.maven.plugins</groupId>
428                <artifactId>maven-war-plugin</artifactId>
429                <configuration>
430                    <warName>${project.artifactId}</warName>
431                    <webXml>${webXmlPath}</webXml>
432                    <webResources>
433                        <resource>
434                            <directory>src/main/webapp</directory>
435                            <filtering>true</filtering>
436                        </resource>
437                    </webResources>
438                    <archive>
439                        <manifest>
440                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
441                        </manifest>
442                    </archive>
443                </configuration>
444            </plugin>
445            <plugin>
446                <groupId>org.jvnet.jaxb2.maven2</groupId>
447                <artifactId>maven-jaxb2-plugin</artifactId>
448                <executions>
449                    <execution>
450                        <id>jaxb-components</id>
451                        <goals>
452                            <goal>generate</goal>
453                        </goals>
454                        <configuration>
455                            <schemaDirectory>src/main/binding/components</schemaDirectory>
456                            <schemaIncludes>
457                                <include>general-component-schema.xsd</include>
458                            </schemaIncludes>
459                            <bindingDirectory>src/main/binding/components</bindingDirectory>
460                            <extension>true</extension>
461                            <generateDirectory>${basedir}/src/generated/jaxb/components</generateDirectory>
462                            <generatePackage>clarin.cmdi.componentregistry.components</generatePackage>
463                            <catalog>src/main/resources/catalog.cat</catalog>
464                            <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver>
465                        </configuration>
466                    </execution>
467                    <execution>
468                        <id>jaxb-rrs</id>
469                        <goals>
470                            <goal>generate</goal>
471                        </goals>
472                        <configuration>
473                            <schemaDirectory>src/main/binding/rss</schemaDirectory>
474                            <schemaIncludes>
475                                <include>rss-2_0.xsd</include>
476                            </schemaIncludes>
477                            <bindingDirectory>src/main/binding/rss</bindingDirectory>
478                            <extension>true</extension>
479                            <generateDirectory>${basedir}/src/generated/jaxb/rss</generateDirectory>
480                            <generatePackage>clarin.cmdi.componentregistry.rss</generatePackage>
481                            <catalog>src/main/resources/catalog.cat</catalog>
482                            <catalogResolver>org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver</catalogResolver>
483                        </configuration>
484                    </execution>
485                </executions>
486            </plugin>
487            <plugin>
488                <groupId>org.apache.maven.plugins</groupId>
489                <artifactId>maven-dependency-plugin</artifactId>
490                <executions>
491                    <execution>
492                        <id>unpack-ui</id>
493                        <phase>process-resources</phase>
494                        <goals>
495                            <goal>unpack</goal>
496                        </goals>
497                        <configuration>
498                            <artifactItems>
499                                <artifactItem>
500                                    <groupId>${project.groupId}</groupId>
501                                    <artifactId>component-registry-react-ui</artifactId>
502                                    <version>${frontEndVersion}</version>
503                                    <overWrite>true</overWrite>
504                                    <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
505                                    <!-- exclude bundled external config, we provide our own -->
506                                    <excludes>compRegConfig.jsp</excludes>
507                                </artifactItem>
508                            </artifactItems>
509                        </configuration>
510                    </execution>
511                </executions>
512            </plugin>
513            <plugin>
514                <artifactId>maven-assembly-plugin</artifactId>
515                <version>2.2.2</version>
516                <executions>
517                    <execution>
518                        <id>make-assembly</id>
519                        <phase>package</phase>
520                        <goals>
521                            <goal>single</goal>
522                        </goals>
523                        <configuration>
524                            <descriptors>
525                                <descriptor>src/main/assembly/release.xml</descriptor>
526                            </descriptors>
527                        </configuration>
528                    </execution>
529                </executions>
530            </plugin>
531            <plugin>
532                <groupId>org.apache.maven.plugins</groupId>
533                <artifactId>maven-surefire-plugin</artifactId>
534                <version>2.13</version>
535                <configuration>
536                    <systemProperties>
537                        <property>
538                            <name>java.util.logging.config.file</name>
539                            <value>${project.build.directory}/classes/logging.properties</value>
540                        </property>
541                    </systemProperties>
542                    <additionalClasspathElements>
543                        <additionalClasspathElement>src/test/resources</additionalClasspathElement>
544                    </additionalClasspathElements>
545                </configuration>
546            </plugin>
547
548        </plugins>
549    </build>
550
551    <repositories>
552        <repository>
553            <id>CLARIN</id>
554            <name>Clarin Repository</name>
555            <url>https://nexus.clarin.eu/content/repositories/Clarin</url>
556        </repository> 
557    </repositories>
558</project>
Note: See TracBrowser for help on using the repository browser.