Ignore:
Timestamp:
08/20/13 15:32:37 (11 years ago)
Author:
George.Georgovassilis@mpi.nl
Message:

#360 Refactoring of transaction handling, tests and application context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/pom.xml

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