Changeset 4326


Ignore:
Timestamp:
01/23/14 15:09:04 (10 years ago)
Author:
twagoo
Message:

Upgraded to SOLR 4.6 (version configured through property in parent pom)
Configured SLF4J version via parent pom as well

Location:
vlo/branches/vlo-3.0
Files:
3 added
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/pom.xml

    r4322 r4326  
    2727
    2828    <properties>
     29        <solr.version>4.6.0</solr.version>
     30        <slf4j.version>1.7.5</slf4j.version>
    2931        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    3032    </properties>
     33   
     34    <dependencies>
     35        <dependency>
     36            <groupId>org.slf4j</groupId>
     37            <artifactId>slf4j-api</artifactId>
     38            <version>${slf4j.version}</version>
     39        </dependency>
     40       
     41        <dependency>
     42            <groupId>junit</groupId>
     43            <artifactId>junit</artifactId>
     44            <version>4.11</version>
     45            <scope>test</scope>
     46        </dependency>
     47    </dependencies>
    3148
    3249    <build>
  • vlo/branches/vlo-3.0/vlo-importer/pom.xml

    r4322 r4326  
    44
    55>
     6    <parent>
     7        <groupId>eu.clarin.cmdi</groupId>
     8        <artifactId>vlo</artifactId>
     9        <version>3.0-SNAPSHOT</version>
     10    </parent>
     11   
    612    <modelVersion>4.0.0</modelVersion>
    7 
    813    <groupId>eu.clarin.cmdi</groupId>
    9 
    1014    <artifactId>vlo-importer</artifactId>
    11 
     15    <version>3.0-SNAPSHOT</version>
    1216    <packaging>jar</packaging>
    1317
    14     <version>3.0-SNAPSHOT</version>
    1518    <name>VLO Importer</name>
    1619    <description></description>
     
    2023        <packaging>jar</packaging>
    2124        <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
     25        <log4j.appender>File</log4j.appender>
    2226    </properties>
     27   
     28    <profiles>
     29        <profile>
     30            <id>dev</id>
     31            <properties>
     32                <log4j.appender>Stdout</log4j.appender>
     33            </properties>
     34        </profile>
     35    </profiles>
    2336
    2437    <build>
     
    123136            <groupId>org.apache.solr</groupId>
    124137            <artifactId>solr-solrj</artifactId>
    125             <version>3.6.0</version>
     138            <version>${solr.version}</version>
    126139        </dependency>
    127140        <dependency>
     
    132145        <dependency>
    133146            <groupId>org.slf4j</groupId>
    134             <artifactId>slf4j-api</artifactId>
    135             <version>1.6.1</version>
    136         </dependency>
    137         <dependency>
    138             <groupId>org.slf4j</groupId>
    139147            <artifactId>slf4j-log4j12</artifactId>
    140             <version>1.6.1</version>
    141         </dependency>
    142         <dependency>
    143             <groupId>log4j</groupId>
    144             <artifactId>log4j</artifactId>
    145             <version>1.2.14</version>
    146         </dependency>
    147         <dependency>
    148             <groupId>junit</groupId>
    149             <artifactId>junit</artifactId>
    150             <version>4.6</version>
    151             <scope>test</scope>
     148            <version>${slf4j.version}</version>
    152149        </dependency>
    153150        <dependency>
  • vlo/branches/vlo-3.0/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/MetadataImporter.java

    r4030 r4326  
    2525import org.apache.commons.io.FileUtils;
    2626import org.apache.solr.client.solrj.SolrServerException;
    27 import org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer;
     27import org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer;
    2828import org.apache.solr.client.solrj.util.ClientUtils;
    2929import org.apache.solr.common.SolrInputDocument;
     
    6363     * the solr server.
    6464     */
    65     private StreamingUpdateSolrServer solrServer;
     65    private ConcurrentUpdateSolrServer solrServer;
    6666    /**
    6767     * Defines the post-processor associations. At import, for each facet value,
     
    236236         * threads, two of them, emptying it.
    237237         */
    238         solrServer = new StreamingUpdateSolrServer(solrUrl,
     238        solrServer = new ConcurrentUpdateSolrServer(solrUrl,
    239239                VloConfig.getMinDocsInSolrQueue(), 2) {
    240240                    /*
  • vlo/branches/vlo-3.0/vlo-importer/src/main/resources/log4j.properties

    r3148 r4326  
    66log4j.appender.Stdout.encoding=UTF-8
    77
    8 log4j.appender.ROOT.File=vlo-importer.log
    9 log4j.appender.ROOT=org.apache.log4j.DailyRollingFileAppender
    10 log4j.appender.ROOT.layout=org.apache.log4j.PatternLayout
    11 log4j.appender.ROOT.layout.ConversionPattern=%d %p [%c#%M:%L] - %m%n
    12 log4j.appender.ROOT.encoding=UTF-8
     8log4j.appender.File.File=vlo-importer.log
     9log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
     10log4j.appender.File.layout=org.apache.log4j.PatternLayout
     11log4j.appender.File.layout.ConversionPattern=%d %p [%c#%M:%L] - %m%n
     12log4j.appender.File.encoding=UTF-8
    1313
    14 log4j.rootLogger=INFO, ROOT
     14log4j.rootLogger=INFO, ${log4j.appender}
    1515
    1616log4j.logger.org.springframework=ERROR
  • vlo/branches/vlo-3.0/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/ImporterTestcase.java

    r2768 r4326  
    55import java.io.IOException;
    66import org.apache.commons.io.FileUtils;
    7 import org.junit.AfterClass;
    8 import org.junit.BeforeClass;
     7import org.junit.After;
     8import org.junit.Before;
    99
    1010public abstract class ImporterTestcase {
    11     private static File testDir;
     11    private File testDir;
    1212
    1313    protected File createCmdiFile(String name, String content) throws IOException {
     
    1717    }
    1818
    19     @AfterClass
    20     public static void cleanup() {
     19    @After
     20    public void cleanup() {
    2121        FileUtils.deleteQuietly(testDir);
    2222    }
    2323
    24     @BeforeClass
    25     public static void setup() {
     24    @Before
     25    public void setup() {
    2626        final String baseTempPath = System.getProperty("java.io.tmpdir");
    2727        testDir = new File(baseTempPath + File.separator + "testRegistry_" + System.currentTimeMillis());
  • vlo/branches/vlo-3.0/vlo-solr/pom.xml

    r4322 r4326  
    11<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     3    <parent>
     4        <groupId>eu.clarin.cmdi</groupId>
     5        <artifactId>vlo</artifactId>
     6        <version>3.0-SNAPSHOT</version>
     7    </parent>
     8   
    39    <modelVersion>4.0.0</modelVersion>
    410    <groupId>eu.clarin.cmdi</groupId>
    511    <artifactId>vlo-solr</artifactId>
     12    <version>3.0-SNAPSHOT</version>
    613    <packaging>war</packaging>
    7     <version>3.6.0</version>
     14   
    815    <name>vlo-solr</name>
    916    <description>VLO Solr server configuration and installation project.</description>
     17   
    1018    <dependencies>
    1119        <dependency>
    1220            <groupId>org.apache.solr</groupId>
    1321            <artifactId>solr-core</artifactId>
    14             <version>3.6.0</version>
     22            <version>${solr.version}</version>
    1523            <exclusions>
    1624                <exclusion>
     
    2432            <groupId>org.apache.solr</groupId>
    2533            <artifactId>solr-dataimporthandler</artifactId>
    26             <version>3.6.0</version>
     34            <version>${solr.version}</version>
    2735        </dependency>
    2836        <dependency>
    2937            <groupId>org.apache.solr</groupId>
    3038            <artifactId>solr-solrj</artifactId>
    31             <version>3.6.0</version>
     39            <version>${solr.version}</version>
    3240        </dependency>
    3341        <dependency>
    3442            <groupId>org.slf4j</groupId>
    3543            <artifactId>slf4j-log4j12</artifactId>
    36             <version>1.6.6</version>
     44            <version>${slf4j.version}</version>
    3745        </dependency>
    3846        <dependency>
    39             <groupId>log4j</groupId>
    40             <artifactId>log4j</artifactId>
    41             <version>1.2.14</version>
     47            <groupId>org.slf4j</groupId>
     48            <artifactId>jcl-over-slf4j</artifactId>
     49            <version>${slf4j.version}</version>
    4250        </dependency>
    4351    </dependencies>
  • vlo/branches/vlo-3.0/vlo-web-app/pom.xml

    r4323 r4326  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<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">
     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">
    55
    6         <modelVersion>4.0.0</modelVersion>
    7         <groupId>eu.clarin.cmdi</groupId>
    8         <artifactId>vlo-web-app</artifactId>
    9         <packaging>war</packaging>
    10         <version>1.0-SNAPSHOT</version>
    11                 <!-- TODO project name  -->
    12         <name>VLO Web Application</name>
    13         <description></description>
     6    <parent>
     7        <groupId>eu.clarin.cmdi</groupId>
     8        <artifactId>vlo</artifactId>
     9        <version>3.0-SNAPSHOT</version>
     10    </parent>
     11   
     12    <modelVersion>4.0.0</modelVersion>
     13    <groupId>eu.clarin.cmdi</groupId>
     14    <artifactId>vlo-web-app</artifactId>
     15    <packaging>war</packaging>
     16    <version>1.0-SNAPSHOT</version>
     17    <!-- TODO project name  -->
     18    <name>VLO Web Application</name>
     19    <description></description>
    1420
    15         <properties>
    16                 <wicket.version>6.12.0</wicket.version>
    17                 <jetty.version>7.6.13.v20130916</jetty.version>
    18                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    19         </properties>
    20         <dependencies>
    21                 <!--  WICKET DEPENDENCIES -->
    22                 <dependency>
    23                         <groupId>org.apache.wicket</groupId>
    24                         <artifactId>wicket-extensions</artifactId>
    25                         <version>${wicket.version}</version>
    26                 </dependency>
     21    <properties>
     22        <wicket.version>6.12.0</wicket.version>
     23        <jetty.version>7.6.13.v20130916</jetty.version>
     24    </properties>
     25    <dependencies>
     26        <!--  WICKET DEPENDENCIES -->
     27        <dependency>
     28            <groupId>org.apache.wicket</groupId>
     29            <artifactId>wicket-extensions</artifactId>
     30            <version>${wicket.version}</version>
     31        </dependency>
    2732
    28                 <!-- LOGGING DEPENDENCIES - LOG4J -->
    29                 <dependency>
    30                         <groupId>org.slf4j</groupId>
    31                         <artifactId>slf4j-log4j12</artifactId>
    32                         <version>1.6.4</version>
    33                 </dependency>
     33        <!-- LOGGING DEPENDENCIES - LOG4J -->
     34        <dependency>
     35            <groupId>org.slf4j</groupId>
     36            <artifactId>slf4j-log4j12</artifactId>
     37            <version>${slf4j.version}</version>
     38        </dependency>
    3439
    35                 <!--  JUNIT DEPENDENCY FOR TESTING -->
    36                 <dependency>
    37                         <groupId>junit</groupId>
    38                         <artifactId>junit</artifactId>
    39                         <version>4.11</version>
    40                         <scope>test</scope>
    41                 </dependency>
     40        <!--  JETTY DEPENDENCIES FOR TESTING  -->
     41        <dependency>
     42            <groupId>org.eclipse.jetty.aggregate</groupId>
     43            <artifactId>jetty-all-server</artifactId>
     44            <version>${jetty.version}</version>
     45            <scope>provided</scope>
     46        </dependency>
     47    </dependencies>
     48    <build>
     49        <resources>
     50            <resource>
     51                <filtering>false</filtering>
     52                <directory>src/main/resources</directory>
     53            </resource>
     54            <resource>
     55                <filtering>false</filtering>
     56                <directory>src/main/java</directory>
     57                <includes>
     58                    <include>**</include>
     59                </includes>
     60                <excludes>
     61                    <exclude>**/*.java</exclude>
     62                </excludes>
     63            </resource>
     64        </resources>
     65        <testResources>
     66            <testResource>
     67                <filtering>false</filtering>
     68                <directory>src/test/resources</directory>
     69            </testResource>
     70            <testResource>
     71                <filtering>false</filtering>
     72                <directory>src/test/java</directory>
     73                <includes>
     74                    <include>**</include>
     75                </includes>
     76                <excludes>
     77                    <exclude>**/*.java</exclude>
     78                </excludes>
     79            </testResource>
     80        </testResources>
     81        <plugins>
     82            <plugin>
     83                <inherited>true</inherited>
     84                <groupId>org.apache.maven.plugins</groupId>
     85                <artifactId>maven-compiler-plugin</artifactId>
     86                <version>2.5.1</version>
     87                <configuration>
     88                    <source>1.6</source>
     89                    <target>1.6</target>
     90                    <encoding>UTF-8</encoding>
     91                    <showWarnings>true</showWarnings>
     92                    <showDeprecation>true</showDeprecation>
     93                </configuration>
     94            </plugin>
     95            <plugin>
     96                <groupId>org.mortbay.jetty</groupId>
     97                <artifactId>jetty-maven-plugin</artifactId>
     98                <version>${jetty.version}</version>
     99                <configuration>
     100                    <connectors>
     101                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
     102                            <port>8080</port>
     103                            <maxIdleTime>3600000</maxIdleTime>
     104                        </connector>
     105                        <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
     106                            <port>8443</port>
     107                            <maxIdleTime>3600000</maxIdleTime>
     108                            <keystore>${project.build.directory}/test-classes/keystore</keystore>
     109                            <password>wicket</password>
     110                            <keyPassword>wicket</keyPassword>
     111                        </connector>
     112                    </connectors>
     113                </configuration>
     114            </plugin>
     115            <plugin>
     116                <artifactId>maven-assembly-plugin</artifactId>
     117                <version>2.3</version>
     118                <configuration>
     119                    <descriptors>
     120                        <descriptor>src/main/assembly/buildwar.xml</descriptor>
     121                    </descriptors>
     122                </configuration>
     123                <executions>
     124                    <execution>
     125                        <id>make-assemblyJ</id>
     126                        <phase>package</phase>
     127                        <goals>
     128                            <goal>single</goal>
     129                        </goals>
     130                    </execution>
     131                </executions>
     132            </plugin>
     133        </plugins>
     134    </build>
    42135
    43                 <!--  JETTY DEPENDENCIES FOR TESTING  -->
    44                 <dependency>
    45                         <groupId>org.eclipse.jetty.aggregate</groupId>
    46                         <artifactId>jetty-all-server</artifactId>
    47                         <version>${jetty.version}</version>
    48                         <scope>provided</scope>
    49                 </dependency>
    50         </dependencies>
    51         <build>
    52                 <resources>
    53                         <resource>
    54                                 <filtering>false</filtering>
    55                                 <directory>src/main/resources</directory>
    56                         </resource>
    57                         <resource>
    58                                 <filtering>false</filtering>
    59                                 <directory>src/main/java</directory>
    60                                 <includes>
    61                                         <include>**</include>
    62                                 </includes>
    63                                 <excludes>
    64                                         <exclude>**/*.java</exclude>
    65                                 </excludes>
    66                         </resource>
    67                 </resources>
    68                 <testResources>
    69                         <testResource>
    70                                 <filtering>false</filtering>
    71                                 <directory>src/test/resources</directory>
    72                         </testResource>
    73                         <testResource>
    74                                 <filtering>false</filtering>
    75                                 <directory>src/test/java</directory>
    76                                 <includes>
    77                                         <include>**</include>
    78                                 </includes>
    79                                 <excludes>
    80                                         <exclude>**/*.java</exclude>
    81                                 </excludes>
    82                         </testResource>
    83                 </testResources>
    84                 <plugins>
    85                         <plugin>
    86                                 <inherited>true</inherited>
    87                                 <groupId>org.apache.maven.plugins</groupId>
    88                                 <artifactId>maven-compiler-plugin</artifactId>
    89                                 <version>2.5.1</version>
    90                                 <configuration>
    91                                         <source>1.6</source>
    92                                         <target>1.6</target>
    93                                         <encoding>UTF-8</encoding>
    94                                         <showWarnings>true</showWarnings>
    95                                         <showDeprecation>true</showDeprecation>
    96                                 </configuration>
    97                         </plugin>
    98                         <plugin>
    99                                 <groupId>org.mortbay.jetty</groupId>
    100                                 <artifactId>jetty-maven-plugin</artifactId>
    101                                 <version>${jetty.version}</version>
    102                                 <configuration>
    103                                         <connectors>
    104                                                 <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
    105                                                         <port>8080</port>
    106                                                         <maxIdleTime>3600000</maxIdleTime>
    107                                                 </connector>
    108                                                 <connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
    109                                                         <port>8443</port>
    110                                                         <maxIdleTime>3600000</maxIdleTime>
    111                                                         <keystore>${project.build.directory}/test-classes/keystore</keystore>
    112                                                         <password>wicket</password>
    113                                                         <keyPassword>wicket</keyPassword>
    114                                                 </connector>
    115                                         </connectors>
    116                                 </configuration>
    117                         </plugin>
    118                 </plugins>
    119         </build>
    120 
    121         <repositories>
    122                 <repository>
    123                         <id>Apache Nexus</id>
    124                         <url>https://repository.apache.org/content/repositories/snapshots/</url>
    125                         <releases>
    126                                 <enabled>false</enabled>
    127                         </releases>
    128                         <snapshots>
    129                                 <enabled>true</enabled>
    130                         </snapshots>
    131                 </repository>
    132         </repositories>
    133         </project>
     136    <repositories>
     137        <repository>
     138            <id>Apache Nexus</id>
     139            <url>https://repository.apache.org/content/repositories/snapshots/</url>
     140            <releases>
     141                <enabled>false</enabled>
     142            </releases>
     143            <snapshots>
     144                <enabled>true</enabled>
     145            </snapshots>
     146        </repository>
     147    </repositories>
     148</project>
Note: See TracChangeset for help on using the changeset viewer.